diff options
Diffstat (limited to 'libbb/procps.c')
-rw-r--r-- | libbb/procps.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/libbb/procps.c b/libbb/procps.c index 71ad071e6..05eefe0da 100644 --- a/libbb/procps.c +++ b/libbb/procps.c | |||
@@ -283,7 +283,6 @@ int FAST_FUNC procps_read_smaps(pid_t pid, struct smaprec *total, | |||
283 | } | 283 | } |
284 | #endif | 284 | #endif |
285 | 285 | ||
286 | void BUG_comm_size(void); | ||
287 | procps_status_t* FAST_FUNC procps_scan(procps_status_t* sp, int flags) | 286 | procps_status_t* FAST_FUNC procps_scan(procps_status_t* sp, int flags) |
288 | { | 287 | { |
289 | if (!sp) | 288 | if (!sp) |
@@ -385,8 +384,7 @@ procps_status_t* FAST_FUNC procps_scan(procps_status_t* sp, int flags) | |||
385 | /*if (!cp || cp[1] != ' ') | 384 | /*if (!cp || cp[1] != ' ') |
386 | continue;*/ | 385 | continue;*/ |
387 | cp[0] = '\0'; | 386 | cp[0] = '\0'; |
388 | if (sizeof(sp->comm) < 16) | 387 | BUILD_BUG_ON(sizeof(sp->comm) < 16); |
389 | BUG_comm_size(); | ||
390 | comm1 = strchr(buf, '('); | 388 | comm1 = strchr(buf, '('); |
391 | /*if (comm1)*/ | 389 | /*if (comm1)*/ |
392 | safe_strncpy(sp->comm, comm1 + 1, sizeof(sp->comm)); | 390 | safe_strncpy(sp->comm, comm1 + 1, sizeof(sp->comm)); |