cvs: php-src(PHP_5_3) /main php_open_temporary_file.c

From: Date: Wed, 24 Jun 2009 20:08:55 +0000
Subject: cvs: php-src(PHP_5_3) /main php_open_temporary_file.c
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-58968@lists.php.net to get a copy of this message
iliaa Wed Jun 24 20:08:55 2009 UTC Modified files: (Branch: PHP_5_3) /php-src/main php_open_temporary_file.c Log: Revert patch http://cvs.php.net/viewvc.cgi/php-src/main/php_open_temporary_file.c?r1=1.34.2.1.2.10.2.3&r2=1.34.2.1.2.10.2.4&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.10.2.3 php-src/main/php_open_temporary_file.c:1.34.2.1.2.10.2.4 --- php-src/main/php_open_temporary_file.c:1.34.2.1.2.10.2.3 Wed Jun 24 12:21:45 2009 +++ php-src/main/php_open_temporary_file.c Wed Jun 24 20:08:54 2009 @@ -16,7 +16,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: php_open_temporary_file.c,v 1.34.2.1.2.10.2.3 2009/06/24 12:21:45 iliaa Exp $ */ +/* $Id: php_open_temporary_file.c,v 1.34.2.1.2.10.2.4 2009/06/24 20:08:54 iliaa Exp $ */ #include "php.h" @@ -200,14 +200,7 @@ { char* s = getenv("TMPDIR"); if (s) { - int len = strlen(s); - - if (s[len - 1] == DEFAULT_SLASH) { - temporary_directory = zend_strndup(s, len - 1); - } else { - temporary_directory = zend_strndup(s, len); - } - + temporary_directory = strdup(s); return temporary_directory; } }

« previous php.cvs (#58968) next »