summaryrefslogtreecommitdiff
path: root/ext/standard/php_crypt_r.c
diff options
context:
space:
mode:
authorStanislav Malyshev <stas@php.net>2011-08-19 22:49:18 +0000
committerStanislav Malyshev <stas@php.net>2011-08-19 22:49:18 +0000
commit4f980905a0bff94807ea07cb897c0e4cd4e6b83f (patch)
tree7cdb9c35a1ea6b290e48c96172318011d7c44de7 /ext/standard/php_crypt_r.c
parent9fbde3c349fb6079a251b7463b8ac5d0cebcc98a (diff)
downloadphp-git-4f980905a0bff94807ea07cb897c0e4cd4e6b83f.tar.gz
Unbreak crypt() (fix bug #55439)
# If you want to remove static analyser messages, be my guest, # but please run unit tests after
Diffstat (limited to 'ext/standard/php_crypt_r.c')
-rw-r--r--ext/standard/php_crypt_r.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/standard/php_crypt_r.c b/ext/standard/php_crypt_r.c
index f4516712da..e8b482ab6b 100644
--- a/ext/standard/php_crypt_r.c
+++ b/ext/standard/php_crypt_r.c
@@ -377,7 +377,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);