diff options
author | Marc Espie <espie@cvs.openbsd.org> | 2004-12-07 11:53:30 +0000 |
---|---|---|
committer | Marc Espie <espie@cvs.openbsd.org> | 2004-12-07 11:53:30 +0000 |
commit | 87af6244b6cacca142a5d5967f5bc29621da51dd (patch) | |
tree | d69bce9a4a49854b8dd89718aa9383db7503ee75 | |
parent | 4a80152731a9337285c1829d01a9cf22b6156d00 (diff) |
advancing argv twice doesn't make it better.
okay otto@.
-rw-r--r-- | usr.bin/diff/diff.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/diff/diff.c b/usr.bin/diff/diff.c index b32ee897861..0d16791b4c1 100644 --- a/usr.bin/diff/diff.c +++ b/usr.bin/diff/diff.c @@ -1,4 +1,4 @@ -/* $OpenBSD: diff.c,v 1.46 2004/06/20 18:47:45 otto Exp $ */ +/* $OpenBSD: diff.c,v 1.47 2004/12/07 11:53:29 espie Exp $ */ /* * Copyright (c) 2003 Todd C. Miller <Todd.Miller@courtesan.com> @@ -21,7 +21,7 @@ */ #ifndef lint -static const char rcsid[] = "$OpenBSD: diff.c,v 1.46 2004/06/20 18:47:45 otto Exp $"; +static const char rcsid[] = "$OpenBSD: diff.c,v 1.47 2004/12/07 11:53:29 espie Exp $"; #endif /* not lint */ #include <sys/param.h> @@ -247,7 +247,7 @@ main(int argc, char **argv) err(2, "%s", argv[1]); if (gotstdin && (S_ISDIR(stb1.st_mode) || S_ISDIR(stb2.st_mode))) errx(2, "can't compare - to a directory"); - set_argstr(oargv + 1, argv); + set_argstr(oargv, argv); if (S_ISDIR(stb1.st_mode) && S_ISDIR(stb2.st_mode)) { if (format == D_IFDEF) errx(2, "-D option not supported with directories"); |