aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoraldot <aldot@69ca8d6d-28ef-0310-b511-8ec308f3f277>2007-02-04 11:13:57 +0000
committeraldot <aldot@69ca8d6d-28ef-0310-b511-8ec308f3f277>2007-02-04 11:13:57 +0000
commitb761e83b785f927b7b1bb354ed4bcbea5def841e (patch)
tree9db883ea3c5924e529cc7145038e14bbdd9ab4c8
parentb7512dff20572cdfc656d4ba015ab045718e2b97 (diff)
downloadbusybox-w32-b761e83b785f927b7b1bb354ed4bcbea5def841e.tar.gz
busybox-w32-b761e83b785f927b7b1bb354ed4bcbea5def841e.tar.bz2
busybox-w32-b761e83b785f927b7b1bb354ed4bcbea5def841e.zip
- fix buglet introduced in r17351 in find_param(). Closes #1193
git-svn-id: svn://busybox.net/trunk/busybox@17757 69ca8d6d-28ef-0310-b511-8ec308f3f277
-rw-r--r--coreutils/stty.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/coreutils/stty.c b/coreutils/stty.c
index c354aac9c..15cb05293 100644
--- a/coreutils/stty.c
+++ b/coreutils/stty.c
@@ -568,10 +568,11 @@ static int find_param(const char * const name)
568 NULL 568 NULL
569 }; 569 };
570 int i = index_in_str_array(params, name); 570 int i = index_in_str_array(params, name);
571 if (i) { 571 if (i < 0)
572 if (!(i == 4 || i == 5)) 572 return 0;
573 i |= 0x80; 573 if (!(i == 4 || i == 5))
574 } 574 i |= 0x80;
575
575 return i; 576 return i;
576} 577}
577 578