From: levitte@gmail.com 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_0.97-1~29 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2a35430c2e4b4f9f263c40e25e3d1a2af7a430a8;p=yubikey-personalization Another copy and paste error, giving wrong numbers when reading pure hex git-svn-id: https://yubikey-personalization.googlecode.com/svn/trunk@151 b62f149e-849f-11dd-9899-c7ba65f7c4c7 --- 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()