]> git.saurik.com Git - wxWidgets.git/commitdiff
another fix for HP-UX 11.11 vsscanf, should have been in r51260
authorPaul Cornett <paulcor@bullseye.com>
Mon, 28 Jan 2008 04:14:54 +0000 (04:14 +0000)
committerPaul Cornett <paulcor@bullseye.com>
Mon, 28 Jan 2008 04:14:54 +0000 (04:14 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51416 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/common/wxcrt.cpp

index 84bf3e438c9ae9858578a2bdbe6d2d8fab730392..6f3377d6cd3e7b13ed557280e27d5e9164fbef1b 100644 (file)
@@ -325,7 +325,8 @@ static int vswscanf(const wchar_t *ws, const wchar_t *format, va_list argptr)
     wxCHECK_MSG( wxStrstr(format, _T("%c")) == NULL, -1,
                  _T("incomplete vswscanf implementation doesn't allow %c") );
 
-    return vsscanf(wxConvLibc.cWX2MB(ws), wxConvLibc.cWX2MB(format), argptr);
+    return vsscanf(wx_static_cast(const char*, wxConvLibc.cWX2MB(ws)),
+        wxConvLibc.cWX2MB(format), argptr);
 }
 #endif