1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-11-13 22:08:52 +01:00

* keygen.c (save_unprotected_key_to_card): Better fix for gcc4 warning.

This commit is contained in:
David Shaw 2005-06-20 17:32:09 +00:00
parent 2d2e2e74b8
commit c66eeec3c6
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2005-06-20 David Shaw <dshaw@jabberwocky.com>
* keygen.c (save_unprotected_key_to_card): Better fix for gcc4
warning.
2005-06-20 Werner Koch <wk@g10code.com>
* g10.c, options.h: New option --no-interactive-selection.

View File

@ -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);