forked from ariadne/pkgconf
getopt: add some padding to EMSG to avoid overrun
parent
0c4fec6a83
commit
c0accce690
|
@ -83,7 +83,8 @@ char *pkg_optarg; /* argument associated with option */
|
|||
#define BADARG ((*options == ':') ? (int)':' : (int)'?')
|
||||
#define INORDER (int)1
|
||||
|
||||
#define EMSG ""
|
||||
/* add some padding to EMSG to avoid overrun */
|
||||
#define EMSG "\0\0\0\0"
|
||||
|
||||
#ifdef GNU_COMPATIBLE
|
||||
#define NO_PREFIX (-1)
|
||||
|
|
Loading…
Reference in New Issue