(crypt_md5): don't use snprintf

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6815 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Johan Danielsson
1999-08-14 19:59:54 +00:00
parent 5d2796564b
commit d5fb7c51c7

View File

@@ -207,8 +207,8 @@ crypt_md5(pw, salt)
MD5Update(&ctx, pw+j, 1);
/* Now make the output string */
snprintf (passwd, sizeof(passwd),
"%s%.*s$", magic, sl, sp);
strcpy(passwd, magic); /* sizeof(passwd) > sizeof(magic) */
strncat(passwd, sp, sl); /* ok, since sl <= 8 */
MD5Final(final,&ctx);