]> git.sur5r.net Git - i3/i3/commitdiff
fix warning about printf() field length
authorMichael Stapelberg <michael@stapelberg.de>
Mon, 8 Oct 2012 11:30:14 +0000 (13:30 +0200)
committerMichael Stapelberg <michael@stapelberg.de>
Mon, 8 Oct 2012 11:30:14 +0000 (13:30 +0200)
src/config_parser.c

index cb65b79bc2c02d0ce691318136507666381980f6..889179a9ad169bbdfac18813d76fa986e8ddec98 100644 (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);