~mdw
/
secnet
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
comm_if: Define the meaning of ->sendmsg returning false
[secnet]
/
util.c
diff --git
a/util.c
b/util.c
index
aa85559
..
94f9e35
100644
(file)
--- a/
util.c
+++ b/
util.c
@@
-303,7
+303,7
@@
void buf_append_string(struct buffer_if *buf, cstring_t s)
len=strlen(s);
/* fixme: if string is longer than 65535, result is a corrupted packet */
buf_append_uint16(buf,len);
-
memcpy(buf_append(buf,len)
,s,len);
+
BUF_ADD_BYTES(append,buf
,s,len);
}
void buffer_new(struct buffer_if *buf, int32_t len)