- Change hardcoded size to lentgh translation to use sizeof(UChar) as suggested by Andrei

This commit is contained in:
Marcus Boerger 2007-01-19 09:12:08 +00:00
parent 0dcfb9c769
commit 27a4e7a2ea

View file

@ -872,7 +872,7 @@ PHPAPI int vuspprintf(UChar **pbuf, size_t max_len, const char *format, va_list
*pbuf = (UChar*)xbuf.c; *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, ...) PHPAPI int uspprintf(UChar **pbuf, size_t max_len, const char *format, ...)