mirror of
https://github.com/sheumann/hush.git
synced 2024-12-28 07:30:23 +00:00
libbb: getopt32() should not ever touch argv[0] (even read)
This commit is contained in:
parent
1c45a505eb
commit
4301616b27
@ -338,7 +338,8 @@ getopt32(char **argv, const char *applet_opts, ...)
|
|||||||
|
|
||||||
int spec_flgs = 0;
|
int spec_flgs = 0;
|
||||||
|
|
||||||
argc = 0;
|
/* skip 0: some applets cheat: they do not actually HAVE argv[0] */
|
||||||
|
argc = 1;
|
||||||
while (argv[argc])
|
while (argv[argc])
|
||||||
argc++;
|
argc++;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user