mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2024-11-08 12:18:42 +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)
|
||||
{
|
||||
int length = strlen(string);
|
||||
write_item(writer, 3, length); // 3 is major, then goes length of string and string
|
||||
check_memory(writer, length);
|
||||
memcpy(writer->cbor+writer->pt, string, length);
|
||||
|
Loading…
Reference in New Issue
Block a user