From a9c4c1306ba8aa15d189dac5dc6fb847c4e1c9a5 Mon Sep 17 00:00:00 2001 From: Christoph Berg Date: Fri, 23 Feb 2024 15:57:34 +0100 Subject: [PATCH] Fix sprintf of size_t This failed on 32-bit platforms. --- src/libpgagroal/prometheus.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libpgagroal/prometheus.c b/src/libpgagroal/prometheus.c index a836d9b8..e7582a01 100644 --- a/src/libpgagroal/prometheus.c +++ b/src/libpgagroal/prometheus.c @@ -2101,7 +2101,7 @@ send_chunk(int client_fd, char* data) return MESSAGE_STATUS_ERROR; } - sprintf(m, "%lX\r\n", strlen(data)); + sprintf(m, "%zX\r\n", strlen(data)); m = pgagroal_append(m, data); m = pgagroal_append(m, "\r\n");