From a7b52f8d29a49e3b93e63020416f51363365a612 Mon Sep 17 00:00:00 2001 From: bug1 Date: Fri, 19 Dec 2003 10:13:10 +0000 Subject: Fix a bug preventing use of escaped characters that use the signed bit git-svn-id: svn://busybox.net/trunk/busybox@8119 69ca8d6d-28ef-0310-b511-8ec308f3f277 --- libbb/getopt_ulflags.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/libbb/getopt_ulflags.c b/libbb/getopt_ulflags.c index 04d1e669f..371fdab26 100644 --- a/libbb/getopt_ulflags.c +++ b/libbb/getopt_ulflags.c @@ -60,7 +60,7 @@ const char *bb_opt_complementaly; typedef struct { - char opt; + unsigned char opt; char list_flg; unsigned long switch_on; unsigned long switch_off; @@ -159,10 +159,9 @@ bb_getopt_ulflags (int argc, char **argv, const char *applet_opts, ...) while ((c = getopt_long (argc, argv, applet_opts, bb_applet_long_options, NULL)) > 0) { - for (on_off = complementaly; on_off->opt != c; on_off++) { if(!on_off->opt) - bb_show_usage (); + bb_show_usage (); } if(flags & on_off->incongruously) flags |= 0x80000000UL; -- cgit v1.2.3-55-g6feb