diff options
author | Alex Dupre <ale@FreeBSD.org> | 2011-08-22 07:56:39 +0000 |
---|---|---|
committer | Alex Dupre <ale@FreeBSD.org> | 2011-08-22 07:56:39 +0000 |
commit | 435b613878f559ca7206379ef0a289dbc86aef8b (patch) | |
tree | b29599e7955411c95ab7e919fcf6ea3ce0e0a6e5 /lang/php53/files | |
parent | - Install the log4j.xml file needed for logging (diff) |
Unbreak crypt().
Submitted by: Svetlin Ivanov <izrodix@gmail.com>
Notes
Notes:
svn path=/head/; revision=280163
Diffstat (limited to 'lang/php53/files')
-rw-r--r-- | lang/php53/files/patch-ext_standard_php_crypt_r.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/lang/php53/files/patch-ext_standard_php_crypt_r.c b/lang/php53/files/patch-ext_standard_php_crypt_r.c new file mode 100644 index 000000000000..e2e5ed8e04ae --- /dev/null +++ b/lang/php53/files/patch-ext_standard_php_crypt_r.c @@ -0,0 +1,11 @@ +--- ext/standard/php_crypt_r.c.orig 2011-08-22 09:54:16.000000000 +0200 ++++ ext/standard/php_crypt_r.c 2011-08-22 09:54:49.000000000 +0200 +@@ -382,7 +382,7 @@ + /* 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); + |