commit d83e96dec420d4381afb9a503dbd44cf95e5b2b3
parent 9f5d71a75916c5e695d06e84627e009dd789422d
Author: finwo <finwo@pm.me>
Date: Thu, 3 Aug 2023 23:28:03 +0200
Format size_t hex with %lx instead of %x
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/http-parser.c b/src/http-parser.c
@@ -433,7 +433,7 @@ struct buf * http_parser_sprint_request(struct http_parser_message *request) {
int isChunked = 0;
if (aTransferEncoding && strcasecmp(aTransferEncoding, "chunked")) {
isChunked = 1;
- sprintf(result->data + strlen(result->data), "%x\r\n", request->body->len);
+ sprintf(result->data + strlen(result->data), "%lx\r\n", request->body->len);
}
// Treat result as buffer from here