diff options
Diffstat (limited to 'src/lib/pid.c')
-rw-r--r-- | src/lib/pid.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/pid.c b/src/lib/pid.c index b73a57409..75576c787 100644 --- a/src/lib/pid.c +++ b/src/lib/pid.c | |||
@@ -149,7 +149,7 @@ uid_t pid_get_uid(pid_t pid) { | |||
149 | char buf[PIDS_BUFLEN]; | 149 | char buf[PIDS_BUFLEN]; |
150 | while (fgets(buf, PIDS_BUFLEN - 1, fp)) { | 150 | while (fgets(buf, PIDS_BUFLEN - 1, fp)) { |
151 | if (strncmp(buf, "Uid:", 4) == 0) { | 151 | if (strncmp(buf, "Uid:", 4) == 0) { |
152 | char *ptr = buf + 5; | 152 | char *ptr = buf + 4; |
153 | while (*ptr != '\0' && (*ptr == ' ' || *ptr == '\t')) { | 153 | while (*ptr != '\0' && (*ptr == ' ' || *ptr == '\t')) { |
154 | ptr++; | 154 | ptr++; |
155 | } | 155 | } |