make sure string is null terminated after char append
authorrephorm <rephorm>
Fri, 9 Feb 2007 12:20:49 +0000 (12:20 +0000)
committerrephorm <rephorm@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Fri, 9 Feb 2007 12:20:49 +0000 (12:20 +0000)
SVN revision: 28298

legacy/efreet/src/lib/efreet_desktop.c

index 0382c9e..c226ddb 100644 (file)
@@ -1315,6 +1315,7 @@ efreet_string_append_char(char *dest, int *size, int *len, char c)
     }
 
     dest[(*len)++] = c;
+    dest[*len] = '\0';
 
     return dest;
 }