From 4f8bfb838fc282ffb27983f789fb2a4d347e684b Mon Sep 17 00:00:00 2001 From: Royce Mitchell III Date: Sun, 8 Jan 2006 13:54:06 +0000 Subject: [PATCH] minor bugfix: sswprintf(L"%hs","foo") was returning L"fff" svn path=/trunk/; revision=20712 --- reactos/tools/ssprintf.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reactos/tools/ssprintf.cpp b/reactos/tools/ssprintf.cpp index efac4600835..2eafcf6c0ef 100644 --- a/reactos/tools/ssprintf.cpp +++ b/reactos/tools/ssprintf.cpp @@ -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;