]> git.sur5r.net Git - i3/i3status/commitdiff
Use correct format string (%ld)
authorMichael Stapelberg <michael+git@stapelberg.de>
Sun, 25 Jan 2009 18:57:20 +0000 (19:57 +0100)
committerMichael Stapelberg <michael+git@stapelberg.de>
Sun, 25 Jan 2009 18:57:20 +0000 (19:57 +0100)
wmiistatus.c

index c1dc2148da052869aea7f4f041f26b5a67fe23b3..be3418053aadf75d8e9b64de9d7058e0f0997ee5 100644 (file)
@@ -405,7 +405,7 @@ static bool process_runs(const char *path) {
                pidbuf[n] = '\0';
        (void)close(fd);
 
-       (void)snprintf(procbuf, sizeof(procbuf), "/proc/%d", strtol(pidbuf, NULL, 10));
+       (void)snprintf(procbuf, sizeof(procbuf), "/proc/%ld", strtol(pidbuf, NULL, 10));
        return (stat(procbuf, &statbuf) >= 0);
 }