summaryrefslogtreecommitdiffstats
path: root/usr.bin/diff/diff.c
diff options
context:
space:
mode:
authorespie <espie@openbsd.org>2004-12-07 11:53:29 +0000
committerespie <espie@openbsd.org>2004-12-07 11:53:29 +0000
commit5e50de091a2eb857ee52abe17764e98462bb6277 (patch)
tree7c51420acf9c841f53d8b6fbf379630c6af05e36 /usr.bin/diff/diff.c
parentregen (diff)
downloadwireguard-openbsd-5e50de091a2eb857ee52abe17764e98462bb6277.tar.xz
wireguard-openbsd-5e50de091a2eb857ee52abe17764e98462bb6277.zip
advancing argv twice doesn't make it better.
okay otto@.
Diffstat (limited to 'usr.bin/diff/diff.c')
-rw-r--r--usr.bin/diff/diff.c6
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");