getopt: add some padding to EMSG to avoid overrun

William Pitcock 2017-01-23 13:01:59 -06:00
parent 0c4fec6a83
commit c0accce690
1 changed files with 2 additions and 1 deletions

View File

@ -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)