diff options
-rw-r--r-- | libps/spec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libps/spec.c b/libps/spec.c index 5499bc15..b34a2343 100644 --- a/libps/spec.c +++ b/libps/spec.c @@ -579,7 +579,7 @@ ps_emit_user_name (struct proc_stat *ps, struct ps_fmt_field *field, if (pw == NULL) { char buf[20]; - sprintf (buf, "(UID %d)", pw->pw_uid); + sprintf (buf, "(UID %d)", u->uid); return ps_stream_write_field (stream, buf, width); } else |