Use correct format string (%ld)
This commit is contained in:
parent
a85e482f7b
commit
cc0484b216
@ -405,7 +405,7 @@ static bool process_runs(const char *path) {
|
|||||||
pidbuf[n] = '\0';
|
pidbuf[n] = '\0';
|
||||||
(void)close(fd);
|
(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);
|
return (stat(procbuf, &statbuf) >= 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user