programs/sndfile-interleave.c : Fix handling of argc.

This commit is contained in:
Erik de Castro Lopo 2011-06-21 19:27:30 +10:00
parent 2fae56b753
commit 19dd992490
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2011-06-21 Erik de Castro Lopo <erikd AT mega-nerd DOT com>
* programs/sndfile-interleave.c
Fix handling of argc. Thanks to Marius Hennecke.
2011-06-14 Erik de Castro Lopo <erikd AT mega-nerd DOT com>
* src/sndfile.h.in

View File

@ -82,7 +82,7 @@ main (int argc, char **argv)
usage_exit () ;
} ;
if (argc - 2 > MAX_INPUTS)
if (argc - 3 > MAX_INPUTS)
{ printf ("\nError : Cannot handle more than %d input channels.\n\n", MAX_INPUTS) ;
exit (1) ;
} ;