diff options
author | 2013-11-25 19:17:07 +0000 | |
---|---|---|
committer | 2013-11-25 19:17:07 +0000 | |
commit | 15eede4f3f3b38d91d326ce60e85494f5f3806f8 (patch) | |
tree | 5655ecc9fe356dcb89128d75a31a4661bda293dd | |
parent | unsigned char changes for ctype (diff) | |
download | wireguard-openbsd-15eede4f3f3b38d91d326ce60e85494f5f3806f8.tar.xz wireguard-openbsd-15eede4f3f3b38d91d326ce60e85494f5f3806f8.zip |
use u_char for buffers in yylex, for ctype calls, as done in all other
parse.y in the tree
issue found by millert, ok gilles
-rw-r--r-- | usr.sbin/smtpd/parse.y | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/usr.sbin/smtpd/parse.y b/usr.sbin/smtpd/parse.y index 79dfa80e877..31bfb25c67e 100644 --- a/usr.sbin/smtpd/parse.y +++ b/usr.sbin/smtpd/parse.y @@ -1,4 +1,4 @@ -/* $OpenBSD: parse.y,v 1.130 2013/11/21 08:52:57 eric Exp $ */ +/* $OpenBSD: parse.y,v 1.131 2013/11/25 19:17:07 deraadt Exp $ */ /* * Copyright (c) 2008 Gilles Chehade <gilles@poolp.org> @@ -1183,9 +1183,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 @@ -1276,8 +1276,8 @@ findeol(void) int yylex(void) { - char buf[8096]; - char *p, *val; + u_char buf[8096]; + u_char *p, *val; int quotec, next, c; int token; @@ -1300,7 +1300,7 @@ top: return (findeol()); } if (isalnum(c) || c == '_') { - *p++ = (char)c; + *p++ = c; continue; } *p = '\0'; @@ -1345,7 +1345,7 @@ top: yyerror("string too long"); return (findeol()); } - *p++ = (char)c; + *p++ = c; } yylval.v.string = strdup(buf); if (yylval.v.string == NULL) |