* keygen.c (save_unprotected_key_to_card): Better fix for gcc4 warning.
authorDavid Shaw <dshaw@jabberwocky.com>
Mon, 20 Jun 2005 17:32:09 +0000 (17:32 +0000)
committerDavid Shaw <dshaw@jabberwocky.com>
Mon, 20 Jun 2005 17:32:09 +0000 (17:32 +0000)
g10/ChangeLog
g10/keygen.c

index 85f998f..bec4c38 100644 (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.
index 29f76d1..c78a0db 100644 (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);