summaryrefslogtreecommitdiff
path: root/wmiistatus.c
diff options
context:
space:
mode:
Diffstat (limited to 'wmiistatus.c')
-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);
}