cvs: php-src /ext/standard uniqid.c
| From: | Sara Golemon | Date: | Thu, 06 Apr 2006 20:05:43 +0000 |
| Subject: | cvs: php-src /ext/standard uniqid.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-37681@lists.php.net to get a copy of this message | ||
pollita Thu Apr 6 20:05:43 2006 UTC
Modified files:
/php-src/ext/standard uniqid.c
Log:
Plug leak which occurs in unicode mode
http://cvs.php.net/viewcvs.cgi/php-src/ext/standard/uniqid.c?r1=1.44&r2=1.45&diff_format=u
Index: php-src/ext/standard/uniqid.c
diff -u php-src/ext/standard/uniqid.c:1.44 php-src/ext/standard/uniqid.c:1.45
--- php-src/ext/standard/uniqid.c:1.44 Sun Jan 1 13:09:56 2006
+++ php-src/ext/standard/uniqid.c Thu Apr 6 20:05:43 2006
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: uniqid.c,v 1.44 2006/01/01 13:09:56 sniper Exp $ */
+/* $Id: uniqid.c,v 1.45 2006/04/06 20:05:43 pollita Exp $ */
#include "php.h"
@@ -81,7 +81,7 @@
spprintf(&uniqid, 0, "%s%08x%05x", prefix, sec, usec);
}
- RETURN_RT_STRING(uniqid, 0);
+ RETURN_RT_STRING(uniqid, ZSTR_AUTOFREE);
}
#endif
/* }}} */