Fix handling of asterisks in wxPrintf() implementation.
authorVadim Zeitlin <vadim@wxwidgets.org>
Thu, 30 Sep 2010 14:30:28 +0000 (14:30 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Thu, 30 Sep 2010 14:30:28 +0000 (14:30 +0000)
commite2dd624761180dccdb2a542623964c8cd4fdb721
treefe2bda3da8da0679f16a1b871d4044d6b0e49a49
parentcdd233ef81ca2bb104347080ba1e4c2d40fead45
Fix handling of asterisks in wxPrintf() implementation.

Count the number of asterisks before modifying the string we use to do this,
otherwise we were off by one for the format specifications containing two of
them.

This really fixes the handling of asterisks (used for width/precision) in
wxPrintf() format string, it wasn't done correctly by r60120 but now
VsnprintfTestCase::Asterisk() test does pass.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@65689 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
include/wx/private/wxprintf.h