Fix wx2stclen() return values after upgrade to Scintilla 3.5.5.
The fix to the length allocated for the buffer (which was off by 1) in
wx2stc() in 9f81ac16f0 exposed another bug,
which used to compensate for that one, in wx2stclen(), so fix it too.
See #16776.
This commit is contained in:
parent
0e8999cb2f
commit
af7ed311ed
1 changed files with 1 additions and 1 deletions
|
|
@ -28,7 +28,7 @@ extern wxCharBuffer wx2stc(const wxString& str);
|
|||
// just to compute the length.
|
||||
inline size_t wx2stclen(const wxString& WXUNUSED(str), const wxCharBuffer& buf)
|
||||
{
|
||||
return buf.length() - 1;
|
||||
return buf.length();
|
||||
}
|
||||
|
||||
#else // not UNICODE
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue