ecere/gui/EditBox: Fixed bad memory access parsing comments
authorJerome St-Louis <jerome@ecere.com>
Sat, 16 Mar 2013 20:20:06 +0000 (16:20 -0400)
committerJerome St-Louis <jerome@ecere.com>
Sat, 16 Mar 2013 20:20:06 +0000 (16:20 -0400)
ecere/src/gui/controls/EditBox.ec

index 0ff9de8..7791478 100644 (file)
@@ -1668,7 +1668,7 @@ private:
                         }
                         else if(wordLen == 1 && word[0] == '*')
                         {
-                           if(!c || word[-1] != '/')
+                           if(c < 2 || word[-1] != '/')
                               lastWasStar = true;
                         }
                         else if(!inSingleLineComment && !inMultiLineComment && !inQuotes && wordLen == 1 && word[0] == '\"')