1 Patchvsubmitted as pull request:
3 https://github.com/LonnyGomes/hexcurse/pull/18
5 diff -u -r ../hexcurse-hexcurse-1.58/src/getopt.c ./src/getopt.c
6 --- ../hexcurse-hexcurse-1.58/src/getopt.c 2014-02-26 19:26:34.000000000 -0500
7 +++ ./src/getopt.c 2015-08-23 07:53:55.917711262 -0400
12 -/* The following modification was submited by Claudio Fanin. This change *
13 - * enables hexcurse to be compiled with SGI's proprietary compiler */
18 -#define __alloca alloca
20 -/* end of modification */
28 int nonopts_size = (last_nonopt - first_nonopt) * sizeof (char *);
29 - char **temp = (char **) __alloca (nonopts_size);
30 + char **temp = (char **) malloc(nonopts_size);
32 /* Interchange the two blocks of data in ARGV. */
35 my_bcopy ((char *) temp,
36 (char *) &argv[first_nonopt + optind - last_nonopt],
40 /* Update records for the slots the non-options now occupy. */