From c89146b171a5c074b99b12a6e15c32d4864d7fc7 Mon Sep 17 00:00:00 2001 From: ale Date: Mon, 22 Aug 2011 07:56:39 +0000 Subject: Unbreak crypt(). Submitted by: Svetlin Ivanov --- lang/php5/files/patch-ext_standard_php_crypt_r.c | 11 +++++++++++ lang/php53/files/patch-ext_standard_php_crypt_r.c | 11 +++++++++++ 2 files changed, 22 insertions(+) create mode 100644 lang/php5/files/patch-ext_standard_php_crypt_r.c create mode 100644 lang/php53/files/patch-ext_standard_php_crypt_r.c 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); + 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); + -- cgit