mirror of git://git.gnupg.org/gnupg.git
gpg: Fix regression in last --card-status patch
--
Sorry, I accidentally pushed the last commit without having amended it
with this fix.
Fixes-commit: fd595c9d36
Signed-off-by: Werner Koch <wk@gnupg.org>
This commit is contained in:
parent
fd595c9d36
commit
bf43b39c05
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue