From: Stanislav Malyshev Date: Fri, 19 Aug 2011 22:49:18 +0000 (+0000) Subject: Unbreak crypt() (fix bug #55439) X-Git-Tag: php-5.3.8~12 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=81ad401604b5907dd26448831452275518a1d66f;p=php Unbreak crypt() (fix bug #55439) # If you want to remove static analyser messages, be my guest, # but please run unit tests after --- diff --git a/ext/standard/php_crypt_r.c b/ext/standard/php_crypt_r.c index ef711b81e4..d59b248958 100644 --- a/ext/standard/php_crypt_r.c +++ b/ext/standard/php_crypt_r.c @@ -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);