iliaa Sat Feb 24 17:16:23 2007 UTC
Modified files: (Branch: PHP_5_2)
/php-src/ext/standard dir.c
Log:
strncpy > strlcpy
http://cvs.php.net/viewvc.cgi/php-src/ext/standard/dir.c?r1=1.147.2.3.2.3&r2=1.147.2.3.2.4&diff_format=u
Index: php-src/ext/standard/dir.c
diff -u php-src/ext/standard/dir.c:1.147.2.3.2.3
php-src/ext/standard/dir.c:1.147.2.3.2.4
--- php-src/ext/standard/dir.c:1.147.2.3.2.3 Mon Jan 22 09:31:46 2007
+++ php-src/ext/standard/dir.c Sat Feb 24 17:16:23 2007
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: dir.c,v 1.147.2.3.2.3 2007/01/22 09:31:46 dmitry Exp $ */
+/* $Id: dir.c,v 1.147.2.3.2.4 2007/02/24 17:16:23 iliaa Exp $ */
/* {{{ includes/startup/misc */
@@ -422,7 +422,7 @@
/* we assume that any glob pattern will match files from one directory
only
so checking the dirname of the first match should be sufficient */
- strncpy(cwd, globbuf.gl_pathv[0], MAXPATHLEN);
+ strlcpy(cwd, globbuf.gl_pathv[0], MAXPATHLEN);
if (PG(safe_mode) && (!php_checkuid(cwd, NULL,
CHECKUID_CHECK_FILE_AND_DIR))) {
RETURN_FALSE;
}
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php