diff options
author | NIIBE Yutaka <[email protected]> | 2015-11-04 01:48:59 +0000 |
---|---|---|
committer | NIIBE Yutaka <[email protected]> | 2015-11-04 01:48:59 +0000 |
commit | c5a9fedba66361ddd9f596528882750068543298 (patch) | |
tree | 913455916d829fbee8d6bf7b5efa3190ca3e626b | |
parent | gpg: Change out of core error message. (diff) | |
download | gnupg-c5a9fedba66361ddd9f596528882750068543298.tar.gz gnupg-c5a9fedba66361ddd9f596528882750068543298.zip |
scd: fix change_keyattr.
* scd/app-openpgp.c (change_keyattr_from_string): Fix parsing.
-rw-r--r-- | scd/app-openpgp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scd/app-openpgp.c b/scd/app-openpgp.c index d43db5b69..06ab32721 100644 --- a/scd/app-openpgp.c +++ b/scd/app-openpgp.c @@ -2793,8 +2793,8 @@ change_keyattr_from_string (app_t app, /* Because this function deletes the key we require the string "--force" in the data to make clear that something serious might happen. */ - sscanf (string, " --force %d %d %n", &key, &algo, &n); - if (n < 13) + sscanf (string, "--force %d %d %n", &key, &algo, &n); + if (n < 12) { err = gpg_error (GPG_ERR_INV_DATA); goto leave; |