From: Michael Stapelberg Date: Sun, 25 Jan 2009 18:57:20 +0000 (+0100) Subject: Use correct format string (%ld) X-Git-Tag: 1.0~28 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=cc0484b2163383bbf8ed667eaac3f85c66888d2e;p=i3%2Fi3status Use correct format string (%ld) --- diff --git a/wmiistatus.c b/wmiistatus.c index c1dc214..be34180 100644 --- a/wmiistatus.c +++ b/wmiistatus.c @@ -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); }