tony2001 Tue Feb 6 17:35:42 2007 UTC Modified files: /php-src/main php_open_temporary_file.c Log: use strdup() http://cvs.php.net/viewvc.cgi/php-src/main/php_open_temporary_file.c?r1=1.41&r2=1.42&diff_format=u Index: php-src/main/php_open_temporary_file.c diff -u php-src/main/php_open_temporary_file.c:1.41 php-src/main/php_open_temporary_file.c:1.42 --- php-src/main/php_open_temporary_file.c:1.41 Sat Feb 3 14:57:24 2007 +++ php-src/main/php_open_temporary_file.c Tue Feb 6 17:35:42 2007 @@ -16,7 +16,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: php_open_temporary_file.c,v 1.41 2007/02/03 14:57:24 helly Exp $ */ +/* $Id: php_open_temporary_file.c,v 1.42 2007/02/06 17:35:42 tony2001 Exp $ */ #include "php.h" @@ -194,12 +194,12 @@ #ifdef P_tmpdir /* Use the standard default temporary directory. */ if (P_tmpdir) { - temporary_directory = P_tmpdir; + temporary_directory = strdup(P_tmpdir); return temporary_directory; } #endif /* Shouldn't ever(!) end up here ... last ditch default. */ - temporary_directory = "/tmp"; + temporary_directory = strdup("/tmp"); return temporary_directory; #endif }
-- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php