Ecere Software
/
sdk
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
51d3135
)
ecere/gui/EditBox: Fixed out of bound reads checking for brackets
author
Jerome St-Louis
<jerome@ecere.com>
Thu, 10 Apr 2014 06:21:25 +0000
(
02:21
-0400)
committer
Jerome St-Louis
<jerome@ecere.com>
Thu, 10 Apr 2014 06:21:25 +0000
(
02:21
-0400)
ecere/src/gui/controls/EditBox.ec
patch
|
blob
|
history
diff --git
a/ecere/src/gui/controls/EditBox.ec
b/ecere/src/gui/controls/EditBox.ec
index
5755d61
..
783332f
100644
(file)
--- a/
ecere/src/gui/controls/EditBox.ec
+++ b/
ecere/src/gui/controls/EditBox.ec
@@
-3758,7
+3758,7
@@
private:
stuffAfter = true;
//If last character is a { indent one tab
- if(
this.line.buffer[this.
x - 1] == '{')
+ if(
x > 0 && x < line.count && line.buffer[
x - 1] == '{')
{
//Except if the next non space character is a }
bool indent = false;