From add83dc908a2d713423e062b30d839b441febbc3 Mon Sep 17 00:00:00 2001 From: merlokk Date: Mon, 13 Nov 2017 13:29:49 +0200 Subject: [PATCH] fixed %zd for size_t --- client/util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/util.c b/client/util.c index fcfbf83e..a1caafdb 100644 --- a/client/util.c +++ b/client/util.c @@ -541,7 +541,7 @@ int param_getstr(const char *line, int paramnum, char * str, size_t buffersize) // Prevent out of bounds errors if (en - bg + 1 >= buffersize) { - printf("out of bounds error: want %d bytes have %d bytes\n", en - bg + 1 + 1, buffersize); + printf("out of bounds error: want %d bytes have %zd bytes\n", en - bg + 1 + 1, buffersize); return 0; }