From e8f86a91afd7346fc6825804241211ec6381db3f Mon Sep 17 00:00:00 2001 From: Zishan Sun Date: Mon, 30 Mar 2026 23:26:43 -0500 Subject: [PATCH] fix: correct typos in DAP error messages - "filed" -> "field" in Content-Length error - "seperator should br" -> "separator should be" - "EORRO" -> "ERROR" in prefix tag --- src/debugger/dap.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/debugger/dap.c b/src/debugger/dap.c index d17ea30f..04cdfcde 100644 --- a/src/debugger/dap.c +++ b/src/debugger/dap.c @@ -371,21 +371,21 @@ void c11_dap_send_initialized_event() { c11_dap_send_event("initialized", "{}"); int c11_dap_read_content_length(const char* buffer, int* header_length) { const char* length_begin = strstr(buffer, "Content-Length: "); if(!length_begin) { - printf("[DEBUGGER ERROR] : no Content-Length filed found\n"); + printf("[DEBUGGER ERROR] : no Content-Length field found\n"); *header_length = 0; return -1; } length_begin += strlen("Content-Length: "); const char* length_end = strstr(length_begin, "\r\n\r\n"); if(!length_end) { - printf("[DEBUGGER ERROR] : the seperator should br \\r\\n\\r\\n\n"); + printf("[DEBUGGER ERROR] : the separator should be \\r\\n\\r\\n\n"); *header_length = 0; return -1; } char* endptr = NULL; long value = strtol(length_begin, &endptr, 10); if(endptr == length_begin) { - printf("[DEBUGGER EORRO] : the length field is empty\n"); + printf("[DEBUGGER ERROR] : the length field is empty\n"); *header_length = 0; return -1; }