helly Fri Jan 19 09:12:08 2007 UTC
Modified files:
/php-src/main spprintf.c
Log:
- Change hardcoded size to lentgh translation to use sizeof(UChar) as
suggested by Andrei
http://cvs.php.net/viewvc.cgi/php-src/main/spprintf.c?r1=1.43&r2=1.44&diff_format=u
Index: php-src/main/spprintf.c
diff -u php-src/main/spprintf.c:1.43 php-src/main/spprintf.c:1.44
--- php-src/main/spprintf.c:1.43 Thu Jan 18 23:11:42 2007
+++ php-src/main/spprintf.c Fri Jan 19 09:12:08 2007
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: spprintf.c,v 1.43 2007/01/18 23:11:42 helly Exp $ */
+/* $Id: spprintf.c,v 1.44 2007/01/19 09:12:08 helly Exp $ */
/* This is the spprintf implementation.
* It has emerged from apache snprintf. See original header:
@@ -872,7 +872,7 @@
*pbuf = (UChar*)xbuf.c;
- return xbuf.len >> 1;
+ return xbuf.len / sizeof(UChar);
}
PHPAPI int uspprintf(UChar **pbuf, size_t max_len, const char *format, ...)
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php