diff options
| author | Jo-Philipp Wich | 2018-02-04 17:25:04 +0000 |
|---|---|---|
| committer | Jo-Philipp Wich | 2018-02-04 17:25:04 +0000 |
| commit | cd6629fc75787cbfcbec12282bd738373bc46ac6 (patch) | |
| tree | 23aafce02905aa13aedcbe001f66817ef53c863d | |
| parent | 8614470400daf36d9b189d9ea9085ef6e19afd0e (diff) | |
| download | jsonpath-cd6629fc75787cbfcbec12282bd738373bc46ac6.tar.gz | |
lexer: fix encoding 7 bit escape sequences
A misplaced paren caused escape sequences in the ranges \x00..\x7f,
\u0000..\u007f and \0..\177 to get improperly encoded into the
string buffer.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
| -rw-r--r-- | lexer.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -55,7 +55,7 @@ utf8enc(char **out, int *rem, int code) if (*rem < 1) return false; - *(*out++) = code; (*rem)--; + *(*out)++ = code; (*rem)--; return true; } else if (code > 0 && code <= 0x7FF) |