Browse Source

Fixed an error in modes parsing which caused infinite looping (previously unnoticed due to strings containing a null terminator).

release/0.19
JustinAJ 9 years ago
parent
commit
c9d988e87b
  1. 2
      Jupiter/IRC_Client.cpp
  2. BIN
      Release/Jupiter.lib

2
Jupiter/IRC_Client.cpp

@ -1132,7 +1132,7 @@ int Jupiter::IRC::Client::primaryHandler()
Jupiter::ReferenceString tword; Jupiter::ReferenceString tword;
unsigned char g = 0; unsigned char g = 0;
char symb = 0; char symb = 0;
for (uint8_t z = 0; modes[z] != 0; z++) for (uint8_t z = 0; z != modes.size(); z++)
{ {
if (modes[z] == '+' || modes[z] == '-') if (modes[z] == '+' || modes[z] == '-')
symb = modes[z]; symb = modes[z];

BIN
Release/Jupiter.lib

Binary file not shown.
Loading…
Cancel
Save