argc counting bug fixed.
authorBodo Möller <bodo@openssl.org>
Tue, 11 May 1999 15:44:58 +0000 (15:44 +0000)
committerBodo Möller <bodo@openssl.org>
Tue, 11 May 1999 15:44:58 +0000 (15:44 +0000)
Submitted by: Tomas Hulek
Reviewed by:
PR:

apps/dgst.c

index 2f87147..9107a52 100644 (file)
@@ -105,7 +105,7 @@ int MAIN(int argc, char **argv)
 
        argc--;
        argv++;
-       for (i=0; i<argc; i++)
+       while (argc > 0)
                {
                if ((*argv)[0] != '-') break;
                if (strcmp(*argv,"-c") == 0)