diff options
author | nyamatongwe <unknown> | 2012-03-03 11:27:41 +1100 |
---|---|---|
committer | nyamatongwe <unknown> | 2012-03-03 11:27:41 +1100 |
commit | 0a7d4be1b8c9b60d44e1feae0be104fc9e315c7d (patch) | |
tree | ba134d8f269c648b207563984069b028877dd655 | |
parent | f099b8028b954b3280992ac339dc49550c5bb499 (diff) | |
download | scintilla-mirror-0a7d4be1b8c9b60d44e1feae0be104fc9e315c7d.tar.gz |
Fix crash caused by NULL pointer for SCI_MOVESELECTEDLINESDOWN. Bug #3496403.
-rw-r--r-- | src/Document.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Document.cxx b/src/Document.cxx index a0dc7f54c..fd71a1363 100644 --- a/src/Document.cxx +++ b/src/Document.cxx @@ -976,7 +976,7 @@ bool Document::InsertChar(int pos, char ch) { * Insert a null terminated string. */ bool Document::InsertCString(int position, const char *s) { - return InsertString(position, s, static_cast<int>(strlen(s))); + return InsertString(position, s, static_cast<int>(s ? strlen(s) : 0)); } void Document::ChangeChar(int pos, char ch) { |