dict.c
changeset 10 188a0e3b3fb4
parent 8 09ec33061ff3
child 14 a961bb8806b9
--- a/dict.c	Sun Aug 19 11:23:57 2007 +0200
+++ b/dict.c	Tue Aug 28 01:01:49 2007 +0200
@@ -151,8 +151,9 @@
     char *out;
     fseek(fdefs, offset, SEEK_SET);
 
-    out = (char *) malloc(length);
+    out = (char *) malloc(length+1);
     fread(out, length, 1, fdefs);
+    out[length] = 0;
     return out;
 }