From cc0484b2163383bbf8ed667eaac3f85c66888d2e Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Sun, 25 Jan 2009 19:57:20 +0100 Subject: [PATCH] Use correct format string (%ld) --- wmiistatus.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- 2.39.5