diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2014-08-20 06:23:01 +0300 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2014-08-20 06:23:01 +0300 |
commit | 0a8f56def1597bd886d7c9095c1f73e157d1197b (patch) | |
tree | c48949f97c0c9c065e23a8b3ae4e9e58c58c191f /node.c | |
parent | 5663bd64a728649e694462caa0c5641c5eac5c60 (diff) | |
download | egawk-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.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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)) { |