Need to skip argv[0] when we are named "sum".

This commit is contained in:
obrien 1997-11-09 05:47:55 +00:00
parent 2a24ee7edf
commit 2e4b81cf96

View File

@ -45,7 +45,7 @@ static const char copyright[] =
static char sccsid[] = "@(#)cksum.c 8.2 (Berkeley) 4/28/95";
#endif
static const char rcsid[] =
"$Id: cksum.c,v 1.6 1997/09/26 08:02:17 phk Exp $";
"$Id: cksum.c,v 1.7 1997/11/09 05:35:26 obrien Exp $";
#endif /* not lint */
#include <sys/cdefs.h>
@ -81,6 +81,7 @@ main(argc, argv)
if (!strcmp(p, "sum")) {
cfncn = csum1;
pfncn = psum1;
++argv;
} else {
cfncn = crc;
pfncn = pcrc;