svn commit: branches/busybox_1_4_stable/coreutils
aldot at busybox.net
aldot at busybox.net
Sun Feb 4 11:16:21 UTC 2007
Author: aldot
Date: 2007-02-04 03:16:21 -0800 (Sun, 04 Feb 2007)
New Revision: 17758
Log:
- pull r17757 from trunk: fix stty's fix_param(). Closes #1193
Modified:
branches/busybox_1_4_stable/coreutils/stty.c
Changeset:
Modified: branches/busybox_1_4_stable/coreutils/stty.c
===================================================================
--- branches/busybox_1_4_stable/coreutils/stty.c 2007-02-04 11:13:57 UTC (rev 17757)
+++ branches/busybox_1_4_stable/coreutils/stty.c 2007-02-04 11:16:21 UTC (rev 17758)
@@ -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