From c66eeec3c67b2361fe9142a4ff7b5fbcb04d1f38 Mon Sep 17 00:00:00 2001 From: David Shaw Date: Mon, 20 Jun 2005 17:32:09 +0000 Subject: [PATCH] * keygen.c (save_unprotected_key_to_card): Better fix for gcc4 warning. --- g10/ChangeLog | 5 +++++ g10/keygen.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/g10/ChangeLog b/g10/ChangeLog index 85f998f42..bec4c38e0 100644 --- a/g10/ChangeLog +++ b/g10/ChangeLog @@ -1,3 +1,8 @@ +2005-06-20 David Shaw + + * keygen.c (save_unprotected_key_to_card): Better fix for gcc4 + warning. + 2005-06-20 Werner Koch * g10.c, options.h: New option --no-interactive-selection. diff --git a/g10/keygen.c b/g10/keygen.c index 29f76d149..c78a0dbbd 100644 --- a/g10/keygen.c +++ b/g10/keygen.c @@ -3543,7 +3543,7 @@ save_unprotected_key_to_card (PKT_secret_key *sk, int keyno) p = stpcpy (p,"))(10:created-at"); sprintf (numbuf2, "%lu", (unsigned long)sk->timestamp); - sprintf (numbuf, "%u:", (unsigned int)strlen (numbuf2)); + sprintf (numbuf, "%lu:", (unsigned long)strlen (numbuf2)); p = stpcpy (stpcpy (stpcpy (p, numbuf), numbuf2), "))"); rc = agent_scd_writekey (keyno, sexp, p - sexp);