From: Richard Levitte Date: Tue, 25 Aug 2009 11:20:37 +0000 (+0000) Subject: Another copy and paste error, giving wrong numbers when reading pure hex X-Git-Tag: yubikey-personalisation_1.3.5-1~4^2~94 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0736f56fa91d4d0cb5b6e7336410a4af7ed261ab;p=yubikey-personalization Another copy and paste error, giving wrong numbers when reading pure hex --- diff --git a/ykpersonalize.c b/ykpersonalize.c index e46358e..5fb638f 100644 --- a/ykpersonalize.c +++ b/ykpersonalize.c @@ -110,7 +110,7 @@ static int hex_modhex_decode(char *result, const char *str, size_t strl) && (strncmp(str, "m:", 2) == 0 || strncmp(str, "M:", 2) == 0)) { return yubikey_modhex_decode(result, str+2, strl-2); } - return yubikey_hex_decode(result, str+2, strl-2); + return yubikey_hex_decode(result, str, strl); } static void report_yk_error()