From 5e50de091a2eb857ee52abe17764e98462bb6277 Mon Sep 17 00:00:00 2001 From: espie Date: Tue, 7 Dec 2004 11:53:29 +0000 Subject: advancing argv twice doesn't make it better. okay otto@. --- usr.bin/diff/diff.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'usr.bin/diff/diff.c') 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 @@ -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 @@ -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"); -- cgit v1.2.3-59-g8ed1b