mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Fix long constant usage for i386.
Tested by: Joe Marcus Clarke <marcus@marcuscom.com>
This commit is contained in:
parent
ad682c4825
commit
6f0a94a9f1
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue