diff options
| author | itojun <itojun@NetBSD.org> | 2003-07-14 12:37:13 +0000 |
|---|---|---|
| committer | itojun <itojun@NetBSD.org> | 2003-07-14 12:37:13 +0000 |
| commit | fcfc71fca0529e3c0ea5d94317ea3b47d6b14aa3 (patch) | |
| tree | 559be1a8abe10d952cd7fdd9a9cf095714911d6c /lib/libcrypt | |
| parent | ab3a8ded53fa2bc695d3cb509f2b4d6b4fcf13a5 (diff) | |
use strlcat
Diffstat (limited to 'lib/libcrypt')
| -rw-r--r-- | lib/libcrypt/md5crypt.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libcrypt/md5crypt.c b/lib/libcrypt/md5crypt.c index d311a902abe..d81c0c7b0e3 100644 --- a/lib/libcrypt/md5crypt.c +++ b/lib/libcrypt/md5crypt.c @@ -1,4 +1,4 @@ -/* $NetBSD: md5crypt.c,v 1.5 2003/04/17 00:29:43 thorpej Exp $ */ +/* $NetBSD: md5crypt.c,v 1.6 2003/07/14 12:37:13 itojun Exp $ */ /* * ---------------------------------------------------------------------------- @@ -15,7 +15,7 @@ #include <sys/cdefs.h> #if !defined(lint) -__RCSID("$NetBSD: md5crypt.c,v 1.5 2003/04/17 00:29:43 thorpej Exp $"); +__RCSID("$NetBSD: md5crypt.c,v 1.6 2003/07/14 12:37:13 itojun Exp $"); #endif /* not lint */ /* @@ -126,7 +126,7 @@ __md5crypt(const char *pw, const char *salt) /* Now make the output string */ memcpy(passwd, MD5_MAGIC, MD5_MAGIC_LEN); strlcpy(passwd + MD5_MAGIC_LEN, sp, sl + 1); - strcat(passwd, "$"); + strlcat(passwd, "$", sizeof(passwd)); FINAL(final, &ctx); |
