mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2025-03-21 22:07:03 +00:00
fixup! cbor_cmds.c, ospf_for_cbor.c: ospf show topology looks working
This commit is contained in:
parent
5a079e8eae
commit
ff7f5df4c5
@ -83,7 +83,6 @@ void cbor_add_string(struct cbor_writer *writer, const char *string)
|
|||||||
|
|
||||||
void cbor_nonterminated_string(struct cbor_writer *writer, const char *string, uint length)
|
void cbor_nonterminated_string(struct cbor_writer *writer, const char *string, uint length)
|
||||||
{
|
{
|
||||||
int length = strlen(string);
|
|
||||||
write_item(writer, 3, length); // 3 is major, then goes length of string and string
|
write_item(writer, 3, length); // 3 is major, then goes length of string and string
|
||||||
check_memory(writer, length);
|
check_memory(writer, length);
|
||||||
memcpy(writer->cbor+writer->pt, string, length);
|
memcpy(writer->cbor+writer->pt, string, length);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user