From 4559b9d5b6ae1eabe667437f9dd2a141d5c2c1bb Mon Sep 17 00:00:00 2001 From: Robert Spalek Date: Tue, 20 Sep 2005 13:06:25 +0000 Subject: [PATCH] increase buffer 3x --- lib/kmp.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/kmp.h b/lib/kmp.h index 419129be..0f49cc74 100644 --- a/lib/kmp.h +++ b/lib/kmp.h @@ -109,7 +109,7 @@ kmp_enter_string(struct kmp *kmp, const byte *str, uns id) * Convert the entered string here in the header and then call the * library function. This function calls kmp_get_char() without any * conversion. */ - byte buf[strlen(str)+1], *str2 = buf; + byte buf[3*strlen(str)+1], *str2 = buf; kmp_char_t c; do { -- 2.39.5