diff options
Diffstat (limited to 'gtk/src/plist.c')
-rw-r--r-- | gtk/src/plist.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/src/plist.c b/gtk/src/plist.c index 93178b370..b0a39c31b 100644 --- a/gtk/src/plist.c +++ b/gtk/src/plist.c @@ -393,7 +393,7 @@ ghb_plist_parse_file(FILE *fd) fseek(fd, 0, SEEK_END); size = ftell(fd); fseek(fd, 0, SEEK_SET); - buffer = g_malloc(size); + buffer = g_malloc(size+1); size = fread(buffer, 1, size, fd); buffer[size] = 0; gval = ghb_plist_parse(buffer, (gssize)size); |