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@
This commit is contained in:
benno 2013-11-25 18:21:55 +00:00
parent 2937b2066f
commit 03b19f1487

10
parse.y
View File

@ -286,9 +286,9 @@ lookup(char *s)
#define MAXPUSHBACK 128 #define MAXPUSHBACK 128
char *parsebuf; u_char *parsebuf;
int parseindex; int parseindex;
char pushback_buffer[MAXPUSHBACK]; u_char pushback_buffer[MAXPUSHBACK];
int pushback_index = 0; int pushback_index = 0;
int int
@ -381,8 +381,8 @@ findeol(void)
int int
yylex(void) yylex(void)
{ {
char buf[8096]; u_char buf[8096];
char *p; u_char *p;
int quotec, next, c; int quotec, next, c;
int token; int token;
@ -423,7 +423,7 @@ yylex(void)
yyerror("string too long"); yyerror("string too long");
return (findeol()); return (findeol());
} }
*p++ = (char)c; *p++ = c;
} }
yylval.v.string = xstrdup(buf); yylval.v.string = xstrdup(buf);
return (STRING); return (STRING);