fixed %zd for size_t

This commit is contained in:
merlokk 2017-11-13 13:29:49 +02:00
commit add83dc908

View file

@ -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;
}