From 8b620b2efe5172f1add3a61af8dc14d03204cb63 Mon Sep 17 00:00:00 2001 From: wilfried Date: Tue, 13 May 2003 02:51:07 +0000 Subject: [PATCH] glimpse really need this buffer to be zeroed, or it will randomly dump core (esp. with malloc option J) --- textproc/glimpse/patches/patch-agrep_bitap_c | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 textproc/glimpse/patches/patch-agrep_bitap_c diff --git a/textproc/glimpse/patches/patch-agrep_bitap_c b/textproc/glimpse/patches/patch-agrep_bitap_c new file mode 100644 index 00000000000..a52dcf7f78d --- /dev/null +++ b/textproc/glimpse/patches/patch-agrep_bitap_c @@ -0,0 +1,12 @@ +$OpenBSD: patch-agrep_bitap_c,v 1.1 2003/05/13 02:51:07 wilfried Exp $ +--- agrep/bitap.c.orig Wed Nov 20 19:28:42 1996 ++++ agrep/bitap.c Mon May 12 20:33:28 2003 +@@ -534,7 +534,7 @@ alloc_buf(fd, buf, size) + #if AGREP_POINTER + if (fd != -1) + #endif /*AGREP_POINTER*/ +- *buf = (char *)malloc(size); ++ *buf = (char *)calloc(1,size); + } + + void