summaryrefslogtreecommitdiff
path: root/src/lsp/json_rpc.c
diff options
context:
space:
mode:
authorZuhaitz Méndez Fernández de Aránguiz <zuhaitz@debian>2026-01-26 02:55:51 +0000
committerZuhaitz Méndez Fernández de Aránguiz <zuhaitz@debian>2026-01-26 02:55:51 +0000
commite310dbff40e60e878032d59fd7c550398ee34e5d (patch)
tree5ef84fbfaf461e9253e75522a7c8798344358183 /src/lsp/json_rpc.c
parent2022012d6514578bd53a91b3048d08cf8686e233 (diff)
Fixed duplicate logic and stability issues
Diffstat (limited to 'src/lsp/json_rpc.c')
-rw-r--r--src/lsp/json_rpc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lsp/json_rpc.c b/src/lsp/json_rpc.c
index 9baf33e..ffb5d1f 100644
--- a/src/lsp/json_rpc.c
+++ b/src/lsp/json_rpc.c
@@ -114,7 +114,7 @@ void handle_request(const char *json_str)
"\"signatureHelpProvider\":{\"triggerCharacters\":[\"(\"]},"
"\"completionProvider\":{"
"\"triggerCharacters\":[\".\"]}}}}";
- fprintf(stdout, "Content-Length: %ld\r\n\r\n%s", strlen(response), response);
+ fprintf(stdout, "Content-Length: %zu\r\n\r\n%s", strlen(response), response);
fflush(stdout);
}
else if (strcmp(method, "textDocument/didOpen") == 0 ||