From 0a8f56def1597bd886d7c9095c1f73e157d1197b Mon Sep 17 00:00:00 2001 From: "Arnold D. Robbins" Date: Wed, 20 Aug 2014 06:23:01 +0300 Subject: \x escape sequences now process a maximum of 2 digits. --- node.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'node.c') diff --git a/node.c b/node.c index 1c896342..213b5335 100644 --- a/node.c +++ b/node.c @@ -557,9 +557,8 @@ parse_escape(const char **string_ptr) warning(_("no hex digits in `\\x' escape sequence")); return ('x'); } - i = j = 0; start = *string_ptr; - for (;; j++) { + for (i = j = 0; j < 2; j++) { /* do outside test to avoid multiple side effects */ c = *(*string_ptr)++; if (isxdigit(c)) { -- cgit v1.2.3