freebsd-ports/japanese/less/files/patch-ad
FUJISHIMA Satsuki 9561c40965 fix SEGV problem.
Submitted by:	nork
Tested by:	Yoshihiko Sarumaru <mistral@imasy.or.jp>
2003-02-27 00:52:58 +00:00

11 lines
299 B
Text

--- 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);