Commits

Kåre Särs  committed 0c152cd

Fix crash in symbolsviewer when typing "#define"

  • Participants
  • Parent commits 6bd4257

Comments (0)

Files changed (1)

File kate/plugins/symbolviewer/cpp_parser.cpp

                      macro = 2;
                      j += 6; // skip the word "define"
                     }
-              if(macro == 2 && cl.at(j) != ' ') macro = 3;
+              if(macro == 2 && j<cl.length() &&cl.at(j) != ' ') macro = 3;
               if(macro == 3)
                 {
                  if (cl.at(j) >= 0x20) stripped += cl.at(j);