Stop truncating all wxString::Printf() arguments to 65535 chars
There is absolutely no good reason to do it and it resulted in silently truncating all the string formatted using "%s" to their first 65535 characters when using our wxPrintf() implementation. Closes #18586.
This commit is contained in:
@@ -19,6 +19,7 @@
|
|||||||
#include "wx/log.h"
|
#include "wx/log.h"
|
||||||
#include "wx/utils.h"
|
#include "wx/utils.h"
|
||||||
|
|
||||||
|
#include <limits.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
// prefer snprintf over sprintf
|
// prefer snprintf over sprintf
|
||||||
@@ -189,7 +190,7 @@ template<typename CharType>
|
|||||||
void wxPrintfConvSpec<CharType>::Init()
|
void wxPrintfConvSpec<CharType>::Init()
|
||||||
{
|
{
|
||||||
m_nMinWidth = 0;
|
m_nMinWidth = 0;
|
||||||
m_nMaxWidth = 0xFFFF;
|
m_nMaxWidth = INT_MAX;
|
||||||
m_pos = 0;
|
m_pos = 0;
|
||||||
m_bAlignLeft = false;
|
m_bAlignLeft = false;
|
||||||
m_pArgPos = m_pArgEnd = NULL;
|
m_pArgPos = m_pArgEnd = NULL;
|
||||||
|
Reference in New Issue
Block a user