summaryrefslogtreecommitdiffstats
path: root/main/php/php-crypt-fix-r315218.patch
blob: aaf688a2fc46532cca50eac2b82039e837ff919d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
Index: php-src/trunk/ext/standard/php_crypt_r.c
===================================================================
--- trunk/ext/standard/php_crypt_r.c	(revision 315217)
+++ trunk/ext/standard/php_crypt_r.c	(revision 315218)
@@ -377,7 +377,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);