From: Michael Stapelberg Date: Mon, 8 Oct 2012 11:30:14 +0000 (+0200) Subject: fix warning about printf() field length X-Git-Tag: 4.4~65 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=040a441101f41975402d4b147b2d2f2fccc0169c;p=i3%2Fi3 fix warning about printf() field length --- 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);