updated on Wed Jan 18 08:00:29 UTC 2012
[aur-mirror.git] / madedit / madedit-max-linelength-fix.patch
blob0e843c2a1e7a2bb0906cc27be9024352e4d590b9
1 --- src/MadEdit/MadEdit.cpp.orig 2010-01-20 22:58:48.597349646 -0430
2 +++ src/MadEdit/MadEdit.cpp 2010-01-20 22:59:47.210672188 -0430
3 @@ -737,6 +737,8 @@
4 m_Config->Read(wxT("MaxLineLength"), &m_MaxLineLength, 4096);
5 if(m_MaxLineLength<80) m_MaxLineLength=80;
7 + if(m_MaxLineLength>4096) m_MaxLineLength=4096;
9 m_WordBuffer = new ucs4_t[m_MaxLineLength+1];
10 #ifdef __WXMSW__
11 m_WCWordBuffer=new wchar_t[(m_MaxLineLength+1)*2];