diff options
| author | itojun <itojun@NetBSD.org> | 2000-07-07 15:10:32 +0000 |
|---|---|---|
| committer | itojun <itojun@NetBSD.org> | 2000-07-07 15:10:32 +0000 |
| commit | bbef2fbaacededb5eb9a0855d32a09e3b032f2c5 (patch) | |
| tree | 803ad37661cca887d0d2f9ba989c9e4fac0d3b4f /usr.bin/tcopy | |
| parent | 82cbc88d2a7761987127a50eb8d22f72dad97c6a (diff) | |
errx?/warnx? audit. do not pass variable alone, use %s. idea from openbsd
Diffstat (limited to 'usr.bin/tcopy')
| -rw-r--r-- | usr.bin/tcopy/tcopy.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/tcopy/tcopy.c b/usr.bin/tcopy/tcopy.c index 7661541424f..0f063350f79 100644 --- a/usr.bin/tcopy/tcopy.c +++ b/usr.bin/tcopy/tcopy.c @@ -1,4 +1,4 @@ -/* $NetBSD: tcopy.c,v 1.9 1998/10/08 02:15:14 wsanchez Exp $ */ +/* $NetBSD: tcopy.c,v 1.10 2000/07/07 15:13:25 itojun Exp $ */ /* * Copyright (c) 1985, 1987, 1993, 1995 @@ -43,7 +43,7 @@ __COPYRIGHT("@(#) Copyright (c) 1985, 1987, 1993\n\ #if 0 static char sccsid[] = "@(#)tcopy.c 8.3 (Berkeley) 1/23/95"; #endif -__RCSID("$NetBSD: tcopy.c,v 1.9 1998/10/08 02:15:14 wsanchez Exp $"); +__RCSID("$NetBSD: tcopy.c,v 1.10 2000/07/07 15:13:25 itojun Exp $"); #endif /* not lint */ #include <sys/types.h> @@ -133,7 +133,7 @@ main(argc, argv) inf = argv[0]; if ((outp = open(argv[1], op == VERIFY ? O_RDONLY : op == COPY ? O_WRONLY : O_RDWR, DEFFILEMODE)) < 0) { - err(3, argv[1]); + err(3, "%s", argv[1]); } break; default: @@ -141,7 +141,7 @@ main(argc, argv) } if ((inp = open(inf, O_RDONLY, 0)) < 0) - err(1, inf); + err(1, "%s", inf); buff = getspace(maxblk); |
