gpg: Replace two sprintf calls.
* g10/keygen.c (print_status_key_created): Use snprintf for now. (ask_expire_interval): Replace xmalloc and sprintf by xasprintf.
Future updates: Replace code like
r = xcalloc (1, sizeof *r + 20 ); r->key = pKEYLENGTH; sprintf( r->u.value, "%u", info.key_attr[0].nbits);
by something like
r = new_r_with_value ("%u", info.key_attr[0].nbits); r->key = pKEYLENGTH;
- Signed-off-by: Werner Koch <wk@gnupg.org>