aboutsummaryrefslogtreecommitdiffstats
path: root/g10/card-util.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2003-12-17 12:26:56 +0000
committerWerner Koch <[email protected]>2003-12-17 12:26:56 +0000
commit23fa5c97929a1206aaa662e2833eaec629d95c57 (patch)
tree5839ee2a1ea7224a0ae1175f4047e1a16d551da5 /g10/card-util.c
parent* gettime.c (asctimestamp): Add a note on a non-avoidable gcc warning. (diff)
downloadgnupg-23fa5c97929a1206aaa662e2833eaec629d95c57.tar.gz
gnupg-23fa5c97929a1206aaa662e2833eaec629d95c57.zip
* card-util.c (print_name): Fixed bad format string usage.
(print_isoname): Ditto. * trustdb.c (check_regexp): s/exp/expr/. * keyedit.c (trustsig_prompt): Removed a "> 255" term; it is always false due to the data type. * passphrase.c (agent_get_passphrase): Use xasprintf and avoid non-literal format strings. * tdbio.c (upd_hashtable, drop_from_hashtable, lookup_hashtable): Fixed log_error format string bugs. Kudos to the now working gcc-3.3 -Wformat-nonliteral and Florian Weimer's investigations in gnupg 1.2.3.
Diffstat (limited to 'g10/card-util.c')
-rw-r--r--g10/card-util.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/g10/card-util.c b/g10/card-util.c
index de445b796..c40cfd84d 100644
--- a/g10/card-util.c
+++ b/g10/card-util.c
@@ -169,8 +169,7 @@ print_sha1_fpr_colon (FILE *fp, const unsigned char *fpr)
static void
print_name (FILE *fp, const char *text, const char *name)
{
- tty_fprintf (fp, text);
-
+ tty_fprintf (fp, "%s", text);
/* FIXME: tty_printf_utf8_string2 eats everything after and
including an @ - e.g. when printing an url. */
@@ -192,7 +191,7 @@ print_isoname (FILE *fp, const char *text, const char *tag, const char *name)
if (opt.with_colons)
fprintf (fp, "%s:", tag);
else
- tty_fprintf (fp, text);
+ tty_fprintf (fp, "%s", text);
if (name && *name)
{