Minor correction
authorGlenn L McGrath <bug1@ihug.co.nz>
Sat, 7 Jun 2003 17:11:00 +0000 (17:11 -0000)
committerGlenn L McGrath <bug1@ihug.co.nz>
Sat, 7 Jun 2003 17:11:00 +0000 (17:11 -0000)
coreutils/sha1sum.c

index 8056b1d..c6534b5 100644 (file)
@@ -190,7 +190,7 @@ extern int authenticate(int argc, char **argv, void (*hash_ptr)(FILE *stream, un
        }
 
        if (argc == optind) {
-               argv[argc] = "-";
+               argv[argc++] = "-";
        }
 
        while (optind < argc) {