diff options
Diffstat (limited to 'tools/plistutil.c')
-rw-r--r-- | tools/plistutil.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/plistutil.c b/tools/plistutil.c index 28848fa..677e432 100644 --- a/tools/plistutil.c +++ b/tools/plistutil.c @@ -246,6 +246,7 @@ int main(int argc, char *argv[]) plist_entire = (char *) malloc(sizeof(char) * (filestats.st_size + 1)); read_size = fread(plist_entire, sizeof(char), filestats.st_size, iplist); + plist_entire[read_size] = '\0'; fclose(iplist); } |