diff options
Diffstat (limited to 'libbb')
-rw-r--r-- | libbb/procps.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libbb/procps.c b/libbb/procps.c index a799bf927..e7635e5f4 100644 --- a/libbb/procps.c +++ b/libbb/procps.c | |||
@@ -13,7 +13,7 @@ | |||
13 | 13 | ||
14 | typedef struct unsigned_to_name_map_t { | 14 | typedef struct unsigned_to_name_map_t { |
15 | unsigned id; | 15 | unsigned id; |
16 | char name[12]; | 16 | char name[USERNAME_MAX_SIZE]; |
17 | } unsigned_to_name_map_t; | 17 | } unsigned_to_name_map_t; |
18 | 18 | ||
19 | typedef struct cache_t { | 19 | typedef struct cache_t { |
@@ -137,7 +137,7 @@ procps_status_t* procps_scan(procps_status_t* sp, int flags) | |||
137 | if (flags & PSSCAN_UIDGID) { | 137 | if (flags & PSSCAN_UIDGID) { |
138 | if (stat(filename, &sb)) | 138 | if (stat(filename, &sb)) |
139 | break; | 139 | break; |
140 | /* Need comment - is this effective or read UID/GID? */ | 140 | /* Need comment - is this effective or real UID/GID? */ |
141 | sp->uid = sb.st_uid; | 141 | sp->uid = sb.st_uid; |
142 | sp->gid = sb.st_gid; | 142 | sp->gid = sb.st_gid; |
143 | } | 143 | } |
@@ -209,7 +209,7 @@ procps_status_t* procps_scan(procps_status_t* sp, int flags) | |||
209 | if ((unsigned char)(buf[n]) < ' ') | 209 | if ((unsigned char)(buf[n]) < ' ') |
210 | buf[n] = ' '; | 210 | buf[n] = ' '; |
211 | } while (n); | 211 | } while (n); |
212 | sp->cmd = strdup(buf); | 212 | sp->cmd = xstrdup(buf); |
213 | } | 213 | } |
214 | break; | 214 | break; |
215 | } | 215 | } |