ICU-5254 Fix for MinGW

X-SVN-Rev: 20067
This commit is contained in:
George Rhoten 2006-08-15 07:30:31 +00:00
parent 668db96d1d
commit 77706b9043

View file

@ -138,7 +138,7 @@ static UnicodeString &getWindowsFormat(int32_t lcid, UBool currency, UnicodeStri
nBuffer[0] = 0x0000;
va_start(args, fmt);
result = vswprintf(nBuffer, STACK_BUFFER_SIZE, fmt, args);
result = vsnwprintf(nBuffer, STACK_BUFFER_SIZE, fmt, args);
va_end(args);
if (result < 0) {
@ -151,7 +151,7 @@ static UnicodeString &getWindowsFormat(int32_t lcid, UBool currency, UnicodeStri
nBuffer = NEW_ARRAY(UChar, newLength + 1);
va_start(args, fmt);
result = vswprintf(nBuffer, newLength + 1, fmt, args);
result = vsnwprintf(nBuffer, newLength + 1, fmt, args);
va_end(args);
}