Adresses comments in #2036 - Thanks to Damjan for the review!

This commit is contained in:
bsongis
2015-01-22 20:17:26 +01:00
parent e05b74b05c
commit 30e1d09584
2 changed files with 3 additions and 1 deletions
+2 -1
View File
@@ -177,7 +177,8 @@ char *strAppend(char *dest, const char *source, int len)
{
while ((*dest++ = *source++)) {
if (--len == 0) {
*dest++ = '\0';
*dest = '\0';
return dest;
}
}
return dest - 1;