diff options
author | Michael Stapelberg <michael+git@stapelberg.de> | 2009-01-25 19:57:20 +0100 |
---|---|---|
committer | Michael Stapelberg <michael+git@stapelberg.de> | 2009-01-25 19:57:20 +0100 |
commit | cc0484b2163383bbf8ed667eaac3f85c66888d2e (patch) | |
tree | 24427c7ef1887897d3415d9a02fc51e252e2a3ad | |
parent | a85e482f7b35f0d76a376b25e10571b4611f8b8f (diff) |
Use correct format string (%ld)
-rw-r--r-- | wmiistatus.c | 2 |
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); } |