aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2003-09-18 12:09:33 +0000
committernyamatongwe <devnull@localhost>2003-09-18 12:09:33 +0000
commit76c4202281dba009808a205320b954fbeed2c5a1 (patch)
tree72d83a54ac4f61b75435d77eb7cc02ce2ccb840e
parentd7bf44a60261f22c1084f0c0c53ca10084cd5655 (diff)
downloadscintilla-mirror-76c4202281dba009808a205320b954fbeed2c5a1.tar.gz
Fix for using wrong loop bound.
-rw-r--r--src/XPM.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/XPM.cxx b/src/XPM.cxx
index 03b151dd4..e693736a2 100644
--- a/src/XPM.cxx
+++ b/src/XPM.cxx
@@ -239,7 +239,7 @@ void XPMSet::Add(int id, const char *textForm) {
width = -1;
// Replace if this id already present
- for (int i = 0; i < maximum; i++) {
+ for (int i = 0; i < len; i++) {
if (set[i]->GetId() == id) {
set[i]->Init(textForm);
return;