aboutsummaryrefslogtreecommitdiffstats
path: root/lang/php5
diff options
context:
space:
mode:
authorale <ale@FreeBSD.org>2011-08-22 15:56:39 +0800
committerale <ale@FreeBSD.org>2011-08-22 15:56:39 +0800
commitc89146b171a5c074b99b12a6e15c32d4864d7fc7 (patch)
tree65e6d1296c570a942e21006aab513bfdbe2bc63f /lang/php5
parent591ad292193123433a9b3102dd5e186e61951131 (diff)
downloadfreebsd-ports-gnome-c89146b171a5c074b99b12a6e15c32d4864d7fc7.tar.gz
freebsd-ports-gnome-c89146b171a5c074b99b12a6e15c32d4864d7fc7.tar.zst
freebsd-ports-gnome-c89146b171a5c074b99b12a6e15c32d4864d7fc7.zip
Unbreak crypt().
Submitted by: Svetlin Ivanov <izrodix@gmail.com>
Diffstat (limited to 'lang/php5')
-rw-r--r--lang/php5/files/patch-ext_standard_php_crypt_r.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/lang/php5/files/patch-ext_standard_php_crypt_r.c b/lang/php5/files/patch-ext_standard_php_crypt_r.c
new file mode 100644
index 000000000000..e2e5ed8e04ae
--- /dev/null
+++ b/lang/php5/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);
+