summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorMark Murray <markm@FreeBSD.org>2003-05-03 20:52:48 +0000
committerMark Murray <markm@FreeBSD.org>2003-05-03 20:52:48 +0000
commit6f0a94a9f184c3f2ffef1ee177959042ed1cb2da (patch)
tree7b464e00fed5001381b92ca79b28e758d6bae77d /bin
parentad682c4825e85d3864b26ac77c707f23c196e20f (diff)
Notes
Diffstat (limited to 'bin')
-rw-r--r--bin/ps/fmt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/ps/fmt.c b/bin/ps/fmt.c
index aae79e00296d..1d907af686f9 100644
--- a/bin/ps/fmt.c
+++ b/bin/ps/fmt.c
@@ -70,7 +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 * arg_max + 1 > (long)SIZE_MAX)
+ if (arg_max >= LONG_MAX / 4 || arg_max >= (long)(SIZE_MAX / 4))
errx(1, "sysconf _SC_ARG_MAX preposterously large");
buf_size = 4 * arg_max + 1;
if ((buf = malloc(buf_size)) == NULL)