diff options
author | Werner Koch <[email protected]> | 2013-03-20 09:00:12 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2013-03-20 09:00:12 +0000 |
commit | eaa6dc3a8b4f31525650cd4785d6bafab86d68b7 (patch) | |
tree | 6552e846c825e2dae78d5ceefebee0e2acaeb27f /agent/command.c | |
parent | Add code to allow for late memory cleanup. (diff) | |
parent | gpg: Print indicator for unknown key capability. (diff) | |
download | gnupg-key-storage-work.tar.gz gnupg-key-storage-work.zip |
Merge branch 'master' into key-storage-workkey-storage-work
--
Diffstat (limited to 'agent/command.c')
-rw-r--r-- | agent/command.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/agent/command.c b/agent/command.c index 2844398f6..823b233bf 100644 --- a/agent/command.c +++ b/agent/command.c @@ -2197,6 +2197,7 @@ cmd_keytocard (assuan_context_t ctx, char *line) gcry_sexp_sprint (s_skey, GCRYSEXP_FMT_CANON, keydata, keydatalen); gcry_sexp_release (s_skey); + keydatalen--; /* Decrement for last '\0'. */ /* Add timestamp "created-at" in the private key */ timestamp = isotime2epoch (timestamp_str); snprintf (keydata+keydatalen-1, 30, "(10:created-at10:%010lu))", timestamp); |