summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Stapelberg <michael+git@stapelberg.de>2009-01-25 19:57:20 +0100
committerMichael Stapelberg <michael+git@stapelberg.de>2009-01-25 19:57:20 +0100
commitcc0484b2163383bbf8ed667eaac3f85c66888d2e (patch)
tree24427c7ef1887897d3415d9a02fc51e252e2a3ad
parenta85e482f7b35f0d76a376b25e10571b4611f8b8f (diff)
Use correct format string (%ld)
-rw-r--r--wmiistatus.c2
1 files changed, 1 insertions, 1 deletions
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);
}