]> mj.ucw.cz Git - libucw.git/blobdiff - lib/kmp.h
bugfix
[libucw.git] / lib / kmp.h
index 649ac4dde791aa08c760110e57d15e833ee9d563..419129be67817a7ae2a442e921a0d53ba9252a54 100644 (file)
--- a/lib/kmp.h
+++ b/lib/kmp.h
@@ -117,7 +117,7 @@ kmp_enter_string(struct kmp *kmp, const byte *str, uns id)
                str2 = utf8_put(str2, c);
        }
        while (c);
-       kmp_enter_raw_string(kmp, str2, id);
+       kmp_enter_raw_string(kmp, buf, id);
 }
 
 struct kmp_result {