summaryrefslogtreecommitdiff
path: root/ext/standard/php_crypt_r.c
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
commit97bc4c84032881cd398e46098e8cfbae6f3a9590 (patch)
tree9e02d50bd6189d5324cb920b5c8361143ca39c27 /ext/standard/php_crypt_r.c
parent2ce3f11f4bd20548dfdb27366fb2dd8585d6ec2a (diff)
downloadphp-git-97bc4c84032881cd398e46098e8cfbae6f3a9590.tar.gz
Make static analyzers happy
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 e8b482ab6b..f169c1a745 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);
- strcat(passwd, "$");
+ strncat(passwd, "$", 1);
PHP_MD5Final(final, &ctx);