summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorjmallett <jmallett@FreeBSD.org>2002-06-07 01:14:05 +0000
committerjmallett <jmallett@FreeBSD.org>2002-06-07 01:14:05 +0000
commit01f3abcecdd8de9323f7118d0a997d39cfe1769a (patch)
tree0df59771d1cbe41edf2741e00eb3ae20685b2483 /bin
parente20227aeb23a1c3b5aa07638cf4e7c8c2772a2bc (diff)
downloadFreeBSD-src-01f3abcecdd8de9323f7118d0a997d39cfe1769a.zip
FreeBSD-src-01f3abcecdd8de9323f7118d0a997d39cfe1769a.tar.gz
Back out previous back out of previously correct code.
Double-plus-pointy-hat to: jmallett Submitted by: bde
Diffstat (limited to 'bin')
-rw-r--r--bin/ps/fmt.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/bin/ps/fmt.c b/bin/ps/fmt.c
index 3703ace..9263886 100644
--- a/bin/ps/fmt.c
+++ b/bin/ps/fmt.c
@@ -70,8 +70,7 @@ shquote(char **argv)
if (buf == NULL) {
if ((arg_max = sysconf(_SC_ARG_MAX)) == -1)
errx(1, "sysconf _SC_ARG_MAX failed");
- if (arg_max >= LONG_MAX / 4 ||
- 4 * (size_t)arg_max + 1 > SIZE_MAX)
+ if (arg_max >= LONG_MAX / 4 || 4 * arg_max + 1 > SIZE_MAX)
errx(1, "sysconf _SC_ARG_MAX preposterously large");
buf_size = 4 * arg_max + 1;
if ((buf = malloc(buf_size)) == NULL)
OpenPOWER on IntegriCloud