summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRasmus Lerdorf <rasmus@php.net>2011-08-07 15:38:36 +0000
committerRasmus Lerdorf <rasmus@php.net>2011-08-07 15:38:36 +0000
commitbcf8485ef5efa882b951d6f5f8ce28edd4399c57 (patch)
tree04a18bdbc3a106ab949d658863f9649f5b2fcd2f
parent57ec3758b7b1d56bc739d6398ab1ded9520fb3fe (diff)
downloadphp-git-bcf8485ef5efa882b951d6f5f8ce28edd4399c57.tar.gz
Make static analyzers happy
-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 d59b248958..e0d72448c2 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);
- strcat(passwd, "$");
+ strncat(passwd, "$", 1);
PHP_MD5Final(final, &ctx);