diff options
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | stdlib/tst-qsort2.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog index 548821e946..090714d26d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2014-06-20 Maciej W. Rozycki <macro@codesourcery.com> + + * stdlib/tst-qsort2.c (main): Fix off-by-one argc interpretation + error. + 2014-06-20 Joseph Myers <joseph@codesourcery.com> * sysdeps/unix/sysv/linux/kernel-features.h diff --git a/stdlib/tst-qsort2.c b/stdlib/tst-qsort2.c index 75d4a1732d..10d16852b0 100644 --- a/stdlib/tst-qsort2.c +++ b/stdlib/tst-qsort2.c @@ -70,7 +70,7 @@ int main (int argc, char **argv) { int ret = 0; - if (argc >= 2) + if (argc >= 3) ret |= test (atoi (argv[1]), atoi (argv[2])); else { |