Fix CID 1356018

This commit is contained in:
Anton Kochkov 2016-05-24 08:54:39 +03:00
parent 4e99730e44
commit f6b18bcb56

View File

@ -69,9 +69,9 @@ static int buf_fprintf(void *stream, const char *format, ...) {
return 0;
}
}
glen = strlen (escaped);
if (escaped) {
glen = strlen (escaped);
memcpy (tmp, escaped, glen);
memcpy (tmp+glen, format, flen);
tmp[flen+glen] = 0;