Use correct format string (%ld)

This commit is contained in:
Michael Stapelberg 2009-01-25 19:57:20 +01:00
parent a85e482f7b
commit cc0484b216

View File

@ -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);
} }