From: Sergey Poznyakoff Date: Tue, 11 May 2004 14:12:39 +0000 (+0000) Subject: (safer_name_suffix): (safer_name_suffix): Use "%s" X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=ecb338ad8e431775b4a757efc5dd198c4690f2cc;p=chaz%2Ftar (safer_name_suffix): (safer_name_suffix): Use "%s" as the format argument, rather than a possibly-translated variable string. Patch provided by Jim Meyering --- diff --git a/src/names.c b/src/names.c index dcad3d7..e9b689c 100644 --- a/src/names.c +++ b/src/names.c @@ -1053,7 +1053,7 @@ safer_name_suffix (char const *file_name, bool link_target) N_("Removing leading `%s' from member names"), N_("Removing leading `%s' from hard link targets") }; - WARN ((0, 0, _(diagnostic[link_target]), prefix)); + WARN ((0, 0, "%s", _(diagnostic[link_target]), prefix)); } } } @@ -1067,7 +1067,7 @@ safer_name_suffix (char const *file_name, bool link_target) N_("Substituting `.' for empty member name"), N_("Substituting `.' for empty hard link target") }; - WARN ((0, 0, _(diagnostic[link_target]))); + WARN ((0, 0, "%s", _(diagnostic[link_target]))); } p = ".";