diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/Editor.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx index bf53de224..4c95b29b8 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -3641,6 +3641,8 @@ sptr_t Editor::WndProc(unsigned int iMessage, uptr_t wParam, sptr_t lParam) { ptr[iChar] = text[iChar]; ptr[iChar] = '\0'; delete []text; + } else { + ptr[0] = '\0'; } return iChar; } |