Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/bin/cp errx?/warnx? audit. do not pass variable alone, use ...



details:   https://anonhg.NetBSD.org/src/rev/3fdaf3615353
branches:  trunk
changeset: 494515:3fdaf3615353
user:      itojun <itojun%NetBSD.org@localhost>
date:      Fri Jul 07 12:50:15 2000 +0000

description:
errx?/warnx? audit.  do not pass variable alone, use %s. idea from openbsd

diffstat:

 bin/cp/cp.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 7f15aa208aa3 -r 3fdaf3615353 bin/cp/cp.c
--- a/bin/cp/cp.c       Fri Jul 07 12:44:47 2000 +0000
+++ b/bin/cp/cp.c       Fri Jul 07 12:50:15 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: cp.c,v 1.29 2000/07/03 03:26:17 matt Exp $     */
+/*     $NetBSD: cp.c,v 1.30 2000/07/07 12:50:15 itojun Exp $   */
 
 /*
  * Copyright (c) 1988, 1993, 1994
@@ -47,7 +47,7 @@
 #if 0
 static char sccsid[] = "@(#)cp.c       8.5 (Berkeley) 4/29/95";
 #else
-__RCSID("$NetBSD: cp.c,v 1.29 2000/07/03 03:26:17 matt Exp $");
+__RCSID("$NetBSD: cp.c,v 1.30 2000/07/07 12:50:15 itojun Exp $");
 #endif
 #endif /* not lint */
 
@@ -269,7 +269,7 @@
        base = 0;       /* XXX gcc -Wuninitialized (see comment below) */
 
        if ((ftsp = fts_open(argv, fts_options, mastercmp)) == NULL)
-               err(1, argv[0]);
+               err(1, "%s", argv[0]);
        for (rval = 0; (curr = fts_read(ftsp)) != NULL;) {
                switch (curr->fts_info) {
                case FTS_NS:



Home | Main Index | Thread Index | Old Index