fix warning about printf() field length

This commit is contained in:
Michael Stapelberg 2012-10-08 13:30:14 +02:00
parent 44c16063ed
commit 040a441101
1 changed files with 1 additions and 1 deletions

View File

@ -275,7 +275,7 @@ struct ConfigResult *parse_config(const char *input, struct context *context) {
while (*dumpwalk != '\0') {
char *next_nl = strchr(dumpwalk, '\n');
if (next_nl != NULL) {
DLOG("CONFIG(line %3d): %.*s\n", linecnt, (next_nl - dumpwalk), dumpwalk);
DLOG("CONFIG(line %3d): %.*s\n", linecnt, (int)(next_nl - dumpwalk), dumpwalk);
dumpwalk = next_nl + 1;
} else {
DLOG("CONFIG(line %3d): %s\n", linecnt, dumpwalk);