OSDN Git Service
(root)
/
joypy
/
Thun.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Use gperf to save memory.
[joypy/Thun.git]
/
implementations
/
C
/
keywords.c
diff --git
a/implementations/C/keywords.c
b/implementations/C/keywords.c
index
614aba1
..
5373008
100644
(file)
--- a/
implementations/C/keywords.c
+++ b/
implementations/C/keywords.c
@@
-144,7
+144,7
@@
in_word_set (register const char *str, register size_t len)
{
register const char *s = wordlist[key];
- if (*str == *s && !str
cmp (str + 1, s + 1)
)
+ if (*str == *s && !str
ncmp (str + 1, s + 1, len - 1) && s[len] == '\0'
)
return s;
}
}