minor bugfix: sswprintf(L"%hs","foo") was returning L"fff"
authorRoyce Mitchell III <royce3@ev1.net>
Sun, 8 Jan 2006 13:54:06 +0000 (13:54 +0000)
committerRoyce Mitchell III <royce3@ev1.net>
Sun, 8 Jan 2006 13:54:06 +0000 (13:54 +0000)
svn path=/trunk/; revision=20712

reactos/tools/ssprintf.cpp

index efac460..2eafcf6 100644 (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;