minor bugfix: sswprintf(L"%hs","foo") was returning L"fff"

svn path=/trunk/; revision=20712
This commit is contained in:
Royce Mitchell III
2006-01-08 13:54:06 +00:00
parent d9a1902bea
commit 4f8bfb838f
+1 -1
View File
@@ -1263,7 +1263,7 @@ wstringa(std::wstring& f, const char* sa, int len, int field_width, int precisio
{
wchar_t w;
int mbcount;
mbcount = mbtowc(&w, sa, len-i);
mbcount = mbtowc(&w, sa+i, len-i);
if (mbcount <= 0)
break;
f += w;