aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2018-03-01 18:10:10 +0000
committerWerner Koch <[email protected]>2018-03-01 18:10:10 +0000
commitbf43b39c05cfc68ea17483c78f14bfca6faf08eb (patch)
treeaa9fda55846e4297d95070644813118c99524df4
parentgpg: Print the keygrip with --card-status (diff)
downloadgnupg-bf43b39c05cfc68ea17483c78f14bfca6faf08eb.tar.gz
gnupg-bf43b39c05cfc68ea17483c78f14bfca6faf08eb.zip
gpg: Fix regression in last --card-status patch
-- Sorry, I accidentally pushed the last commit without having amended it with this fix. Fixes-commit: fd595c9d3642dba437fbe0f6e25d7aaaae095f94 Signed-off-by: Werner Koch <[email protected]>
-rw-r--r--g10/call-agent.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/g10/call-agent.c b/g10/call-agent.c
index f29e1b131..ea530e7ac 100644
--- a/g10/call-agent.c
+++ b/g10/call-agent.c
@@ -383,7 +383,7 @@ unhexify_fpr (const char *hexstr, unsigned char *fpr)
;
if ((*s && *s != ' ') || (n != 40))
return 0; /* no fingerprint (invalid or wrong length). */
- for (s=hexstr, n=0; *s; s += 2, n++)
+ for (s=hexstr, n=0; *s && n < 20; s += 2, n++)
fpr[n] = xtoi_2 (s);
return 1; /* okay */