Permalink
| @@ -777,8 +777,9 @@ void xmlrpc_char_encode(char *outbuffer, const char *s1) | ||
| s->append_char(s, c); | ||
| } | ||
| } | ||
| + s->append_char(s, 0); | ||
| - memcpy(outbuffer, s->str, XMLRPC_BUFSIZE); | ||
| + strncpy(outbuffer, s->str, XMLRPC_BUFSIZE); | ||
This comment has been minimized.Show comment
Hide comment
kaniini
Contributor
|
||
| } | ||
| static void xmlrpc_append_char_encode(mowgli_string_t *s, const char *s1) | ||
this is wrong.
should be something like:
do not just change it to strlcpy, that is wrong too
also, you do not need the
s->append_char(s, 0)that is just madness,mowgli_string_tis meant to be a Pascal string, so use themempcpyabove to convert it correctly