From ffaf8f96183a933dd58dd92f399d23ac7c756f75 Mon Sep 17 00:00:00 2001 From: Assar Westerlund Date: Sun, 17 Nov 1996 07:10:47 +0000 Subject: [PATCH] (otp_parse_hex): Bug when copying back key. git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@1015 ec53bebd-3082-4978-b11e-865c3cabbd6b --- lib/otp/otp_parse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/otp/otp_parse.c b/lib/otp/otp_parse.c index c349cab60..45b167f1e 100644 --- a/lib/otp/otp_parse.c +++ b/lib/otp/otp_parse.c @@ -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; }