]> err.no Git - yubikey-personalization/commitdiff
Another copy and paste error, giving wrong numbers when reading pure hex
authorRichard Levitte <levitte@lp.se>
Tue, 25 Aug 2009 11:20:37 +0000 (11:20 +0000)
committerRichard Levitte <levitte@lp.se>
Tue, 25 Aug 2009 11:20:37 +0000 (11:20 +0000)
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()