Skip to content

Commit

Permalink
Fix sprintf of size_t
Browse files Browse the repository at this point in the history
This failed on 32-bit platforms.
  • Loading branch information
df7cb committed Feb 23, 2024
1 parent dc8abb7 commit a9c4c13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libpgagroal/prometheus.c
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit a9c4c13

Please sign in to comment.