(otp_parse_hex): Bug when copying back key.

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1015 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Assar Westerlund
1996-11-17 07:10:47 +00:00
parent 2e7e0ff21d
commit ffaf8f9618

View File

@@ -2231,7 +2231,7 @@ otp_parse_hex (OtpKey key, char *s)
&is[0], &is[1], &is[2], &is[3], &is[4],
&is[5], &is[6], &is[7]) != 8)
return -1;
for (i = 0; i < sizeof(is); ++i)
for (i = 0; i < OTPKEYSIZE; ++i)
key[i] = is[i];
return 0;
}