summaryrefslogtreecommitdiff
path: root/lib/libskey
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libskey')
-rw-r--r--lib/libskey/skeylogin.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libskey/skeylogin.c b/lib/libskey/skeylogin.c
index b6687c64c84..c393a5f8a85 100644
--- a/lib/libskey/skeylogin.c
+++ b/lib/libskey/skeylogin.c
@@ -12,7 +12,7 @@
*
* S/KEY verification check, lookups, and authentication.
*
- * $OpenBSD: skeylogin.c,v 1.25 1998/07/03 01:32:49 angelos Exp $
+ * $OpenBSD: skeylogin.c,v 1.26 1998/07/03 01:38:04 millert Exp $
*/
#include <sys/param.h>
@@ -492,10 +492,10 @@ skey_authenticate(username)
ptr = hash_collapse(up + 4);
- for (i = 0;
+ for (i = 4;
i < SKEY_MAX_SEED_LEN;
i++) {
- p[i] = (ptr % 10) + '0';
+ pbuf[i] = (ptr % 10) + '0';
ptr /= 10;
}