Fixes to coverity defects 87601 87557 87548 87547 87546 87545 87544 87536 87535 87529 87528

This commit is contained in:
Markus Makela
2015-02-22 22:29:30 +02:00
parent 22255a6045
commit 46c4fefb00
8 changed files with 16 additions and 10 deletions

View File

@ -1219,7 +1219,8 @@ inline void add_str(char** buf, int* buflen, int* bufsize, char* str)
if(*buf)
strcat(*buf," ");
}
strcat(*buf,str);
if(*buf)
strcat(*buf,str);
*buflen += isize;
}