From cbf1c5013e356d17b5f8658becc7411fdec79850 Mon Sep 17 00:00:00 2001 From: kris Date: Mon, 10 Jul 2000 08:42:58 +0000 Subject: [PATCH] Don't call err() with no format string. --- usr.bin/biff/biff.c | 4 ++-- usr.bin/colcrt/colcrt.c | 6 +++++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/usr.bin/biff/biff.c b/usr.bin/biff/biff.c index 606afa8a919d..718263f5cab6 100644 --- a/usr.bin/biff/biff.c +++ b/usr.bin/biff/biff.c @@ -87,11 +87,11 @@ main(argc, argv) switch(argv[0][0]) { case 'n': if (chmod(name, sb.st_mode & ~0100) < 0) - err(2, name); + err(2, "%s", name); break; case 'y': if (chmod(name, sb.st_mode | 0100) < 0) - err(2, name); + err(2, "%s", name); break; default: usage(); diff --git a/usr.bin/colcrt/colcrt.c b/usr.bin/colcrt/colcrt.c index c165177bf4ed..67f4b06dfdfd 100644 --- a/usr.bin/colcrt/colcrt.c +++ b/usr.bin/colcrt/colcrt.c @@ -38,7 +38,11 @@ static const char copyright[] = #endif /* not lint */ #ifndef lint +#if 0 static const char sccsid[] = "@(#)colcrt.c 8.1 (Berkeley) 6/6/93"; +#endif +static const char rcsid[] = + "$FreeBSD$"; #endif /* not lint */ #include @@ -104,7 +108,7 @@ main(argc, argv) close(0); if (!(f = fopen(argv[0], "r"))) { fflush(stdout); - err(1, argv[0]); + err(1, "%s", argv[0]); } argc--; argv++;