From ab0556a8a996fce043c56978e4721ca2fb2ed599 Mon Sep 17 00:00:00 2001 From: Pedro Martelletto Date: Wed, 28 Jun 2006 19:17:57 +0000 Subject: Use argv[0] where argv[0] is meant, Nicholas Marriott --- sbin/scan_ffs/scan_ffs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sbin') diff --git a/sbin/scan_ffs/scan_ffs.c b/sbin/scan_ffs/scan_ffs.c index fea888a3eba..e1ba6ff0420 100644 --- a/sbin/scan_ffs/scan_ffs.c +++ b/sbin/scan_ffs/scan_ffs.c @@ -1,4 +1,4 @@ -/* $OpenBSD: scan_ffs.c,v 1.11 2004/02/16 19:13:03 deraadt Exp $ */ +/* $OpenBSD: scan_ffs.c,v 1.12 2006/06/28 19:17:56 pedro Exp $ */ /* * Copyright (c) 1998 Niklas Hallqvist, Tobias Weingartner @@ -160,7 +160,7 @@ main(int argc, char *argv[]) fd = opendev(argv[0], O_RDONLY, OPENDEV_PART, NULL); if (fd < 0) - err(1, "%s", argv[1]); + err(1, "%s", argv[0]); return (ufsscan(fd, beg, end, flags)); } -- cgit v1.2.3