diff options
author | Ondřej Surý <ondrej@sury.org> | 2011-08-24 12:51:40 +0200 |
---|---|---|
committer | Ondřej Surý <ondrej@sury.org> | 2011-08-24 12:51:40 +0200 |
commit | 8f8cd52ec2b7a2da7821f14103623477444870be (patch) | |
tree | 0f75468803badc5653e48d63174cc5643497c8d2 /ext/standard/php_crypt_r.c | |
parent | f452a2b3e4e4279b27594a8ddb66525442d59227 (diff) | |
download | php-8f8cd52ec2b7a2da7821f14103623477444870be.tar.gz |
Imported Upstream version 5.3.8
Diffstat (limited to 'ext/standard/php_crypt_r.c')
-rw-r--r-- | ext/standard/php_crypt_r.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/standard/php_crypt_r.c b/ext/standard/php_crypt_r.c index a1e0f3229..86076e8bf 100644 --- a/ext/standard/php_crypt_r.c +++ b/ext/standard/php_crypt_r.c @@ -1,4 +1,4 @@ -/* $Id: php_crypt_r.c 314438 2011-08-07 16:10:34Z rasmus $ */ +/* $Id: php_crypt_r.c 315338 2011-08-23 08:09:55Z johannes $ */ /* +----------------------------------------------------------------------+ | PHP Version 5 | @@ -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); |