tony2001                Wed Feb  7 21:07:32 2007 UTC

  Modified files:              (Branch: PHP_5_2)
    /php-src/main       php_open_temporary_file.c 
  Log:
  fix MFHed segfault
  
  
http://cvs.php.net/viewvc.cgi/php-src/main/php_open_temporary_file.c?r1=1.34.2.1.2.6&r2=1.34.2.1.2.7&diff_format=u
Index: php-src/main/php_open_temporary_file.c
diff -u php-src/main/php_open_temporary_file.c:1.34.2.1.2.6 
php-src/main/php_open_temporary_file.c:1.34.2.1.2.7
--- php-src/main/php_open_temporary_file.c:1.34.2.1.2.6 Wed Feb  7 21:01:06 2007
+++ php-src/main/php_open_temporary_file.c      Wed Feb  7 21:07:31 2007
@@ -16,7 +16,7 @@
    +----------------------------------------------------------------------+
  */
 
-/* $Id: php_open_temporary_file.c,v 1.34.2.1.2.6 2007/02/07 21:01:06 helly Exp 
$ */
+/* $Id: php_open_temporary_file.c,v 1.34.2.1.2.7 2007/02/07 21:07:31 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

Reply via email to