]> err.no Git - yubikey-personalization/commitdiff
Another copy and paste error, giving wrong numbers when reading pure hex
authorlevitte@gmail.com <levitte@gmail.com@b62f149e-849f-11dd-9899-c7ba65f7c4c7>
Tue, 25 Aug 2009 11:20:37 +0000 (11:20 +0000)
committerlevitte@gmail.com <levitte@gmail.com@b62f149e-849f-11dd-9899-c7ba65f7c4c7>
Tue, 25 Aug 2009 11:20:37 +0000 (11:20 +0000)
git-svn-id: https://yubikey-personalization.googlecode.com/svn/trunk@151 b62f149e-849f-11dd-9899-c7ba65f7c4c7

ykpersonalize.c

index e46358e914280f51b9e96790bddf11b724fdaa47..5fb638fb6d907767e4f866fd61ae9fca8f963d08 100644 (file)
@@ -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()