From 2a35430c2e4b4f9f263c40e25e3d1a2af7a430a8 Mon Sep 17 00:00:00 2001 From: "levitte@gmail.com" Date: Tue, 25 Aug 2009 11:20:37 +0000 Subject: [PATCH] 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 --- ykpersonalize.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() -- 2.39.5