=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/ssh/Attic/auth-skey.c,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- src/usr.bin/ssh/Attic/auth-skey.c 1999/10/07 21:45:02 1.1 +++ src/usr.bin/ssh/Attic/auth-skey.c 1999/10/16 20:57:52 1.2 @@ -1,5 +1,5 @@ #include "includes.h" -RCSID("$Id: auth-skey.c,v 1.1 1999/10/07 21:45:02 markus Exp $"); +RCSID("$Id: auth-skey.c,v 1.2 1999/10/16 20:57:52 deraadt Exp $"); #include "ssh.h" #include @@ -116,7 +116,7 @@ memset(up, 0, 20); /* SHA1 specific */ free(up); - (void)sprintf(skeyprompt, + (void)snprintf(skeyprompt, sizeof skeyprompt, "otp-%.*s %d %.*s", SKEY_MAX_HASHNAME_LEN, skey_get_algorithm(), @@ -139,7 +139,8 @@ } while (--i != 0); pbuf[12] = '\0'; - (void)sprintf(skeyprompt, "otp-%.*s %d %.*s", + (void)snprintf(skeyprompt, sizeof skeyprompt, + "otp-%.*s %d %.*s", SKEY_MAX_HASHNAME_LEN, skey_get_algorithm(), 99, SKEY_MAX_SEED_LEN, pbuf);