]> git.xonotic.org Git - xonotic/gmqcc.git/blobdiff - lex.c
block and value codegen protos
[xonotic/gmqcc.git] / lex.c
diff --git a/lex.c b/lex.c
index 48f58d8f6e81683a429823035af526f82b24e3e8..f30073fc9fdcc48aa8e9e16987c0c42559ada90e 100644 (file)
--- a/lex.c
+++ b/lex.c
@@ -293,7 +293,7 @@ int lex_token(struct lex_file *file) {
         
         /* look inside the table for a keyword .. */
         for (it = 0; it < sizeof(lex_keywords)/sizeof(*lex_keywords); it++)
-            if (!strncmp(file->lastok, lex_keywords[it], sizeof(lex_keywords[it])))
+            if (!strncmp(file->lastok, lex_keywords[it], strlen(lex_keywords[it])))
                 return it;
                 
         /* try a type? */