diff options
Diffstat (limited to 'smtpd/parse.y')
-rw-r--r-- | smtpd/parse.y | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/smtpd/parse.y b/smtpd/parse.y index d6cf8466..8f331315 100644 --- a/smtpd/parse.y +++ b/smtpd/parse.y @@ -1,4 +1,4 @@ -/* $OpenBSD: parse.y,v 1.250 2018/12/28 14:21:02 eric Exp $ */ +/* $OpenBSD: parse.y,v 1.251 2019/02/13 22:57:08 deraadt Exp $ */ /* * Copyright (c) 2008 Gilles Chehade <gilles@poolp.org> @@ -2551,7 +2551,7 @@ top: if (c == '-' || isdigit(c)) { do { *p++ = c; - if ((unsigned)(p-buf) >= sizeof(buf)) { + if ((size_t)(p-buf) >= sizeof(buf)) { yyerror("string too long"); return (findeol()); } @@ -2597,7 +2597,7 @@ nodigits: if (isalnum(c) || c == ':' || c == '_') { do { *p++ = c; - if ((unsigned)(p-buf) >= sizeof(buf)) { + if ((size_t)(p-buf) >= sizeof(buf)) { yyerror("string too long"); return (findeol()); } |