summaryrefslogtreecommitdiff
blob: ac39760ebcf3a270acbd596a4fe6ba1c78aa637e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
--- src/speak_lib.cpp   2007-02-01 19:34:01.360979913
+0000
+++ src/speak_lib.cpp        2007-02-01 19:34:13.708979913
+0000
@@ -238,7 +238,7 @@
 char *Alloc(int size)
 {//==================
   char *p;
-  if((p = (char *)malloc(size)) == NULL)
+  if((p = (char *)malloc(size+1)) == NULL)
     fprintf(stderr,"Can't allocate memory\n");
   return(p);
 }