mirror of
https://github.com/GnoConsortium/gno.git
synced 2025-02-17 20:30:31 +00:00
Fixed an off-by-one error; removerez would abort with the usage message
if only one filename was given.
This commit is contained in:
parent
b9be5b37c2
commit
efd645f1ca
@ -4,7 +4,7 @@
|
||||
*
|
||||
* Devin Reade, February 1998
|
||||
*
|
||||
* $Id: removerez.c,v 1.1 1998/03/31 03:32:59 gdr-ftp Exp $
|
||||
* $Id: removerez.c,v 1.2 1998/04/10 20:19:24 gdr-ftp Exp $
|
||||
*/
|
||||
|
||||
#define __USE_DYNAMIC_GSSTRING__
|
||||
@ -46,7 +46,7 @@ main (int argc, char **argv) {
|
||||
usage = 1;
|
||||
}
|
||||
}
|
||||
if (usage || (argc-optind)<2) {
|
||||
if (usage || (argc-optind)<1) {
|
||||
errx(EXIT_FAILURE, "usage: %s file [...]\n", argv[0]);
|
||||
}
|
||||
for (i=optind; i<argc; i++) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user