aboutsummaryrefslogtreecommitdiffstats
path: root/node.c
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2014-08-20 06:23:01 +0300
committerArnold D. Robbins <arnold@skeeve.com>2014-08-20 06:23:01 +0300
commit0a8f56def1597bd886d7c9095c1f73e157d1197b (patch)
treec48949f97c0c9c065e23a8b3ae4e9e58c58c191f /node.c
parent5663bd64a728649e694462caa0c5641c5eac5c60 (diff)
downloadegawk-0a8f56def1597bd886d7c9095c1f73e157d1197b.tar.gz
egawk-0a8f56def1597bd886d7c9095c1f73e157d1197b.tar.bz2
egawk-0a8f56def1597bd886d7c9095c1f73e157d1197b.zip
\x escape sequences now process a maximum of 2 digits.
Diffstat (limited to 'node.c')
-rw-r--r--node.c3
1 files changed, 1 insertions, 2 deletions
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)) {