minor fixes

* fix timeout set in PR #481
* fix warning in util.c printf
This commit is contained in:
Oleg Moiseenko 2017-11-15 08:49:18 +02:00 committed by pwpiwi
commit c95affa8d3
2 changed files with 3 additions and 3 deletions

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 %lu bytes have %lu 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;
}