diff options
author | Ron Yorston <rmy@pobox.com> | 2024-11-06 15:14:41 +0000 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2024-12-09 02:16:44 +0100 |
commit | 175b8dda19022f5ca5b81f87248924817e7ea1cf (patch) | |
tree | ad6adc9957fcdbd317b1eba58a502acf36d4c14f /arch | |
parent | e6f3a3b381fd32fc711b410aff9c9a37b75d353f (diff) | |
download | busybox-w32-175b8dda19022f5ca5b81f87248924817e7ea1cf.tar.gz busybox-w32-175b8dda19022f5ca5b81f87248924817e7ea1cf.tar.bz2 busybox-w32-175b8dda19022f5ca5b81f87248924817e7ea1cf.zip |
libbb: tidy argument checks in getopt32()
When getopt32() has complementary options it's possible to specify
the minimum and maximum number of arguments allowed. Checking
these values was inconsistent:
- '?' correctly checked that it was followed by a digit but set
the otherwise unused spec_flgs variable on error.
- '=' failed to check that it was followed by a digit.
function old new delta
vgetopt32 1307 1319 +12
Signed-off-by: Ron Yorston <rmy@pobox.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'arch')
0 files changed, 0 insertions, 0 deletions