summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorSebastian Benoit <benno@cvs.openbsd.org>2013-11-25 18:21:56 +0000
committerSebastian Benoit <benno@cvs.openbsd.org>2013-11-25 18:21:56 +0000
commitd8fee7e1a2e1ebabb02ae36ba23bc8540bb67fed (patch)
tree03d0af842fc35f9f96c6aa953bb5c7a2ec1e437d /app
parentd92e68f6e70e541d8940f7a16162c69e1ca55c74 (diff)
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@
Diffstat (limited to 'app')
-rw-r--r--app/cwm/parse.y12
1 files changed, 6 insertions, 6 deletions
diff --git a/app/cwm/parse.y b/app/cwm/parse.y
index 1af6f64a1..52e4466a9 100644
--- a/app/cwm/parse.y
+++ b/app/cwm/parse.y
@@ -1,4 +1,4 @@
-/* $OpenBSD: parse.y,v 1.47 2013/07/16 14:04:44 okan Exp $ */
+/* $OpenBSD: parse.y,v 1.48 2013/11/25 18:21:55 benno Exp $ */
/*
* Copyright (c) 2002, 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -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);