From 8f8cd52ec2b7a2da7821f14103623477444870be Mon Sep 17 00:00:00 2001 From: Ondřej Surý Date: Wed, 24 Aug 2011 12:51:40 +0200 Subject: Imported Upstream version 5.3.8 --- ext/standard/php_crypt_r.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ext/standard/php_crypt_r.c') diff --git a/ext/standard/php_crypt_r.c b/ext/standard/php_crypt_r.c index a1e0f3229..86076e8bf 100644 --- a/ext/standard/php_crypt_r.c +++ b/ext/standard/php_crypt_r.c @@ -1,4 +1,4 @@ -/* $Id: php_crypt_r.c 314438 2011-08-07 16:10:34Z rasmus $ */ +/* $Id: php_crypt_r.c 315338 2011-08-23 08:09:55Z johannes $ */ /* +----------------------------------------------------------------------+ | PHP Version 5 | @@ -382,7 +382,7 @@ char * php_md5_crypt_r(const char *pw, const char *salt, char *out) /* Now make the output string */ memcpy(passwd, MD5_MAGIC, MD5_MAGIC_LEN); strlcpy(passwd + MD5_MAGIC_LEN, sp, sl + 1); - strlcat(passwd, "$", 1); + strcat(passwd, "$"); PHP_MD5Final(final, &ctx); -- cgit v1.2.3