diff options
author | Werner Koch <[email protected]> | 2016-10-24 11:12:05 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2016-10-24 11:12:05 +0000 |
commit | 9d6146d6f9870fbfcec15cdc4becaf094d5a90e0 (patch) | |
tree | dc8a2eda5978e6e955497b302491bca7b71dcc78 /common/sysutils.c | |
parent | agent: Minor cleanup for recent change in findkey.c (diff) | |
download | gnupg-9d6146d6f9870fbfcec15cdc4becaf094d5a90e0.tar.gz gnupg-9d6146d6f9870fbfcec15cdc4becaf094d5a90e0.zip |
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 <[email protected]>
Diffstat (limited to 'common/sysutils.c')
0 files changed, 0 insertions, 0 deletions