getopt: add some padding to EMSG to avoid overrun

feature/tap-sh
William Pitcock 2017-01-23 13:01:59 -06:00
parent e87595b3d1
commit e36a92dc9e
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)