mirror of
https://github.com/php/php-src.git
synced 2025-08-19 08:49:28 +02:00
- Change hardcoded size to lentgh translation to use sizeof(UChar) as suggested by Andrei
This commit is contained in:
parent
0dcfb9c769
commit
27a4e7a2ea
1 changed files with 1 additions and 1 deletions
|
@ -872,7 +872,7 @@ PHPAPI int vuspprintf(UChar **pbuf, size_t max_len, const char *format, va_list
|
|||
|
||||
*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, ...)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue