[Pkg-gnupg-commit] [gnupg2] 100/241: scd: fix change_keyattr.
Daniel Kahn Gillmor
dkg at fifthhorseman.net
Wed Dec 9 20:32:01 UTC 2015
This is an automated email from the git hooks/post-receive script.
dkg pushed a commit to branch master
in repository gnupg2.
commit c5a9fedba66361ddd9f596528882750068543298
Author: NIIBE Yutaka <gniibe at fsij.org>
Date: Wed Nov 4 10:48:59 2015 +0900
scd: fix change_keyattr.
* scd/app-openpgp.c (change_keyattr_from_string): Fix parsing.
---
scd/app-openpgp.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/scd/app-openpgp.c b/scd/app-openpgp.c
index d43db5b..06ab327 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;
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-gnupg/gnupg2.git
More information about the Pkg-gnupg-commit
mailing list