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:
Vadim Zeitlin
2019-11-17 18:26:26 +01:00
parent b690caba84
commit 8005c59615

View File

@@ -19,6 +19,7 @@
#include "wx/log.h"
#include "wx/utils.h"
#include <limits.h>
#include <string.h>
// prefer snprintf over sprintf
@@ -189,7 +190,7 @@ template<typename CharType>
void wxPrintfConvSpec<CharType>::Init()
{
m_nMinWidth = 0;
m_nMaxWidth = 0xFFFF;
m_nMaxWidth = INT_MAX;
m_pos = 0;
m_bAlignLeft = false;
m_pArgPos = m_pArgEnd = NULL;