diff options
Diffstat (limited to 'g10')
-rw-r--r-- | g10/ChangeLog | 4 | ||||
-rw-r--r-- | g10/mainproc.c | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/g10/ChangeLog b/g10/ChangeLog index 959655f35..d7db690fc 100644 --- a/g10/ChangeLog +++ b/g10/ChangeLog @@ -1,3 +1,7 @@ +2009-03-25 Werner Koch <[email protected]> + + * mainproc.c (print_pkenc_list): Use snprintf. + 2009-03-17 Werner Koch <[email protected]> * call-agent.c (my_percent_plus_escape): Remove. diff --git a/g10/mainproc.c b/g10/mainproc.c index 4678c1bfd..84a9de5f1 100644 --- a/g10/mainproc.c +++ b/g10/mainproc.c @@ -469,8 +469,8 @@ print_pkenc_list( struct kidlist_item *list, int failed ) if( list->reason == G10ERR_NO_SECKEY ) { if( is_status_enabled() ) { char buf[20]; - sprintf(buf,"%08lX%08lX", (ulong)list->kid[0], - (ulong)list->kid[1] ); + snprintf (buf, sizeof buf, "%08lX%08lX", + (ulong)list->kid[0], (ulong)list->kid[1]); write_status_text( STATUS_NO_SECKEY, buf ); } } |