[ros-diffs] [royce] 20712: minor bugfix: sswprintf(L"%hs", "foo") was returning L"fff"

royce at svn.reactos.org royce at svn.reactos.org
Sun Jan 8 14:54:28 CET 2006


minor bugfix: sswprintf(L"%hs","foo") was returning L"fff"
Modified: trunk/reactos/tools/ssprintf.cpp
  _____  

Modified: trunk/reactos/tools/ssprintf.cpp
--- trunk/reactos/tools/ssprintf.cpp	2006-01-08 12:55:06 UTC (rev
20711)
+++ trunk/reactos/tools/ssprintf.cpp	2006-01-08 13:54:06 UTC (rev
20712)
@@ -1263,7 +1263,7 @@

 	{
 		wchar_t w;
 		int mbcount;
-		mbcount = mbtowc(&w, sa, len-i);
+		mbcount = mbtowc(&w, sa+i, len-i);
 		if (mbcount <= 0)
 			break;
 		f += w;
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.reactos.org/pipermail/ros-diffs/attachments/20060108/6f108d99/attachment.html


More information about the Ros-diffs mailing list