Blame SOURCES/dhcp-statement_parser.patch

81992e
diff --git a/common/parse.c b/common/parse.c
81992e
index e78223c2..656b378b 100644
81992e
--- a/common/parse.c
81992e
+++ b/common/parse.c
81992e
@@ -5790,13 +5790,14 @@ int parse_X (cfile, buf, max)
81992e
 				skip_to_semi (cfile);
81992e
 				return 0;
81992e
 			}
81992e
-			convert_num (cfile, &buf [len], val, 16, 8);
81992e
-			if (len++ > max) {
81992e
+			if (len >= max) {
81992e
 				parse_warn (cfile,
81992e
 					    "hexadecimal constant too long.");
81992e
 				skip_to_semi (cfile);
81992e
 				return 0;
81992e
 			}
81992e
+			convert_num (cfile, &buf [len], val, 16, 8);
81992e
+			len++;
81992e
 			token = peek_token (&val, (unsigned *)0, cfile);
81992e
 			if (token == COLON)
81992e
 				token = next_token (&val,