summaryrefslogtreecommitdiff
path: root/lsp-json.c
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2025-09-30 12:53:43 -0400
committerpommicket <pommicket@gmail.com>2025-09-30 12:53:43 -0400
commitee9e965fa28ee9d1d38b67e30b179488cbbca4eb (patch)
tree130bc0895ae1ca1165d33ff20f46593975f94958 /lsp-json.c
parentd36eee9eb7e61ed239a759a98e6b137f3b675ad1 (diff)
Fix parsing of \u sequences in LSP responses
Diffstat (limited to 'lsp-json.c')
-rw-r--r--lsp-json.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lsp-json.c b/lsp-json.c
index 4884c8c..ae25267 100644
--- a/lsp-json.c
+++ b/lsp-json.c
@@ -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