aboutsummaryrefslogtreecommitdiffstats
path: root/g10
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2009-03-25 16:05:16 +0000
committerWerner Koch <[email protected]>2009-03-25 16:05:16 +0000
commitceb42db4dd6b98d6b31429bed2ca40505731b9e8 (patch)
treee471d7b311d3c73dc55a3a1f420233dd847b16a2 /g10
parentlog file fixes. (diff)
downloadgnupg-ceb42db4dd6b98d6b31429bed2ca40505731b9e8.tar.gz
gnupg-ceb42db4dd6b98d6b31429bed2ca40505731b9e8.zip
Print NO_SECKEY status line in gpgsm.
This fixes bug#1020.
Diffstat (limited to 'g10')
-rw-r--r--g10/ChangeLog4
-rw-r--r--g10/mainproc.c4
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 );
}
}