From 040a441101f41975402d4b147b2d2f2fccc0169c Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Mon, 8 Oct 2012 13:30:14 +0200 Subject: [PATCH] fix warning about printf() field length --- src/config_parser.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/config_parser.c b/src/config_parser.c index cb65b79b..889179a9 100644 --- a/src/config_parser.c +++ b/src/config_parser.c @@ -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); -- 2.39.5