Commit e06fccea authored by François Grisez's avatar François Grisez

Fix stringop-truncation GCC warning violation.

parent 3529d084
......@@ -217,8 +217,7 @@ char * ortp_strcat_vprintf(char* dst, const char *fmt, va_list ap){
retlen = strlen(ret);
if ((dst = ortp_realloc(dst, dstlen+retlen+1)) != NULL){
strncat(dst,ret,retlen);
dst[dstlen+retlen] = '\0';
strcat(dst,ret);
ortp_free(ret);
return dst;
} else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment