diff options
Diffstat (limited to 'src/librc-daemon.c')
-rw-r--r-- | src/librc-daemon.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librc-daemon.c b/src/librc-daemon.c index 9e3ea488..f023a22f 100644 --- a/src/librc-daemon.c +++ b/src/librc-daemon.c @@ -118,7 +118,7 @@ pid_t *rc_find_pids (const char *exec, const char *cmd, continue; if (uid) { - snprintf (buffer, sizeof (buffer), "/proc/%d", pid); + snprintf (buffer, sizeof (buffer), "/proc/%d", p); if (stat (buffer, &sb) != 0 || sb.st_uid != uid) continue; } |