From 7cf9955507e487543c1e66a8b23912017ef31a49 Mon Sep 17 00:00:00 2001 From: rwatson Date: Tue, 15 Jul 2008 16:07:34 +0000 Subject: Invoke err() with a format string rather than directly with a passed command line argument. Submitted by: Alfredo Ortega Thanks to: Core Security Technologies MFC after: 3 days --- usr.sbin/extattr/rmextattr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'usr.sbin') diff --git a/usr.sbin/extattr/rmextattr.c b/usr.sbin/extattr/rmextattr.c index 0c65d7b..2b2689b 100644 --- a/usr.sbin/extattr/rmextattr.c +++ b/usr.sbin/extattr/rmextattr.c @@ -172,7 +172,7 @@ main(int argc, char *argv[]) error = extattr_string_to_namespace(argv[0], &attrnamespace); if (error) - err(-1, argv[0]); + err(-1, "%s", argv[0]); argc--; argv++; if (what != EALS) { -- cgit v1.1