fix off-by-one in argument handling

Signed-off-by: Steve Markgraf <steve@steve-m.de>
This commit is contained in:
Hoernchen 2012-04-19 15:43:05 +02:00 committed by Steve Markgraf
parent e07189cea1
commit 6b99aedc4d
1 changed files with 2 additions and 2 deletions

View File

@ -141,7 +141,7 @@ int main(int argc, char **argv)
filename = argv[optind]; filename = argv[optind];
} }
#else #else
if(argc <5) if(argc <6)
usage(); usage();
dev_index = atoi(argv[1]); dev_index = atoi(argv[1]);
samp_rate = atoi(argv[2])*1000; samp_rate = atoi(argv[2])*1000;