cvs: php-src(PHP_5_2) /ext/standard html.c
| From: | Ilia Alshanetsky | Date: | Wed, 21 Feb 2007 03:59:05 +0000 |
| Subject: | cvs: php-src(PHP_5_2) /ext/standard html.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-43168@lists.php.net to get a copy of this message | ||
iliaa Wed Feb 21 03:59:05 2007 UTC
Modified files: (Branch: PHP_5_2)
/php-src/ext/standard html.c
Log:
Use strlcpy() rather then strcpy()
http://cvs.php.net/viewvc.cgi/php-src/ext/standard/html.c?r1=1.111.2.2.2.6&r2=1.111.2.2.2.7&diff_format=u
Index: php-src/ext/standard/html.c
diff -u php-src/ext/standard/html.c:1.111.2.2.2.6 php-src/ext/standard/html.c:1.111.2.2.2.7
--- php-src/ext/standard/html.c:1.111.2.2.2.6 Thu Jan 18 16:21:32 2007
+++ php-src/ext/standard/html.c Wed Feb 21 03:59:05 2007
@@ -18,7 +18,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: html.c,v 1.111.2.2.2.6 2007/01/18 16:21:32 tony2001 Exp $ */
+/* $Id: html.c,v 1.111.2.2.2.7 2007/02/21 03:59:05 iliaa Exp $ */
/*
* HTML entity resources:
@@ -1138,7 +1138,7 @@
}
replaced[len++] = '&';
- strcpy(replaced + len, rep);
+ strlcpy(replaced + len, rep, maxlen);
len += l;
replaced[len++] = ';';
}