summaryrefslogtreecommitdiff
path: root/ext/standard/php_crypt_r.c
diff options
context:
space:
mode:
authorRasmus Lerdorf <rasmus@php.net>2011-08-07 16:10:34 +0000
committerRasmus Lerdorf <rasmus@php.net>2011-08-07 16:10:34 +0000
commit7eb5bbbf65f4e142add0bcd2229a9c5b3ac7abf2 (patch)
tree55ca581659c0057b1ed94774c7b2f00c98013740 /ext/standard/php_crypt_r.c
parentd9845c2046990d1f0621cbe6b4091bdc5ba31930 (diff)
downloadphp-git-7eb5bbbf65f4e142add0bcd2229a9c5b3ac7abf2.tar.gz
Fix more signed 1-bit bitfield, and let's use strlcpy/strlcat instead for these
static string copies
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 f169c1a745..f4516712da 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);
- strncat(passwd, "$", 1);
+ strlcat(passwd, "$", 1);
PHP_MD5Final(final, &ctx);