summaryrefslogtreecommitdiff
path: root/japanese/less/files/patch-ad
blob: 35c16f16c2dcce3e4b4350336bffd5ce637834c3 (plain)
1
2
3
4
5
6
7
8
9
10
11
--- search.c.orig	Thu Feb 27 00:22:02 2003
+++ search.c	Thu Feb 27 00:22:54 2003
@@ -1371,7 +1371,7 @@
 				if (charset)
 					free(charset);
 				charset = (CHARSET *)
-					ecalloc(len, sizeof(CHARSET));
+					ecalloc(len+1, sizeof(CHARSET));
 			}
 
 			cvt_text(line, charset, line, NULL, ops);