svn commit: trunk/busybox/coreutils
aldot at busybox.net
aldot at busybox.net
Sun Feb 4 11:13:58 UTC 2007
Author: aldot
Date: 2007-02-04 03:13:57 -0800 (Sun, 04 Feb 2007)
New Revision: 17757
Log:
- fix buglet introduced in r17351 in find_param(). Closes #1193
Modified:
trunk/busybox/coreutils/stty.c
Changeset:
Modified: trunk/busybox/coreutils/stty.c
===================================================================
--- trunk/busybox/coreutils/stty.c 2007-02-04 09:43:11 UTC (rev 17756)
+++ trunk/busybox/coreutils/stty.c 2007-02-04 11:13:57 UTC (rev 17757)
@@ -568,10 +568,11 @@
NULL
};
int i = index_in_str_array(params, name);
- if (i) {
- if (!(i == 4 || i == 5))
- i |= 0x80;
- }
+ if (i < 0)
+ return 0;
+ if (!(i == 4 || i == 5))
+ i |= 0x80;
+
return i;
}
More information about the busybox-cvs
mailing list