]> mj.ucw.cz Git - libucw.git/commitdiff
increase buffer 3x
authorRobert Spalek <robert@ucw.cz>
Tue, 20 Sep 2005 13:06:25 +0000 (13:06 +0000)
committerRobert Spalek <robert@ucw.cz>
Tue, 20 Sep 2005 13:06:25 +0000 (13:06 +0000)
lib/kmp.h

index 419129be67817a7ae2a442e921a0d53ba9252a54..0f49cc74d28a5abd2955f14239965f83a6a382b8 100644 (file)
--- 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
        {