diff options
author | pommicket <pommicket@gmail.com> | 2025-09-30 12:53:43 -0400 |
---|---|---|
committer | pommicket <pommicket@gmail.com> | 2025-09-30 12:53:43 -0400 |
commit | ee9e965fa28ee9d1d38b67e30b179488cbbca4eb (patch) | |
tree | 130bc0895ae1ca1165d33ff20f46593975f94958 /lsp-json.c | |
parent | d36eee9eb7e61ed239a759a98e6b137f3b675ad1 (diff) |
Fix parsing of \u sequences in LSP responses
Diffstat (limited to 'lsp-json.c')
-rw-r--r-- | lsp-json.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -577,7 +577,7 @@ void json_string_get(const JSON *json, JSONString string, char *buf, size_t buf_ hex[0] = text[i++]; hex[1] = text[i++]; hex[2] = text[i++]; - hex[3] = text[i++]; + hex[3] = text[i]; unsigned code_point=0; sscanf(hex, "%04x", &code_point); // technically this won't deal with people writing out UTF-16 surrogate halves |