OSDN Git Service

Use gperf to save memory.
[joypy/Thun.git] / implementations / C / keywords.c
index 614aba1..5373008 100644 (file)
@@ -144,7 +144,7 @@ in_word_set (register const char *str, register size_t len)
         {
           register const char *s = wordlist[key];
 
-          if (*str == *s && !strcmp (str + 1, s + 1))
+          if (*str == *s && !strncmp (str + 1, s + 1, len - 1) && s[len] == '\0')
             return s;
         }
     }