diff options
author | benno <benno> | 2013-11-25 18:21:55 +0000 |
---|---|---|
committer | benno <benno> | 2013-11-25 18:21:55 +0000 |
commit | 03b19f1487135d8e8a80e0aad5aef447776c7c11 (patch) | |
tree | 341b273389b50a6fa28f4a5afe5c929c7f8a9c1c | |
parent | 2937b2066f005ccb6f89bfe6480284874a398feb (diff) | |
download | cwm-03b19f1487135d8e8a80e0aad5aef447776c7c11.tar.gz cwm-03b19f1487135d8e8a80e0aad5aef447776c7c11.tar.xz cwm-03b19f1487135d8e8a80e0aad5aef447776c7c11.zip |
Log message:
use u_char for buffers in yylex, for ctype calls, as done in all other parse.y in the tree found by millert@, ok okan@
-rw-r--r-- | parse.y | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/parse.y b/parse.y index e2a6885..ef46887 100644 --- a/parse.y +++ b/parse.y @@ -286,9 +286,9 @@ lookup(char *s) #define MAXPUSHBACK 128 -char *parsebuf; +u_char *parsebuf; int parseindex; -char pushback_buffer[MAXPUSHBACK]; +u_char pushback_buffer[MAXPUSHBACK]; int pushback_index = 0; int @@ -381,8 +381,8 @@ findeol(void) int yylex(void) { - char buf[8096]; - char *p; + u_char buf[8096]; + u_char *p; int quotec, next, c; int token; @@ -423,7 +423,7 @@ yylex(void) yyerror("string too long"); return (findeol()); } - *p++ = (char)c; + *p++ = c; } yylval.v.string = xstrdup(buf); return (STRING); |