Commit 0939c8b5 authored by mercury233's avatar mercury233

fix

parent 553330c7
...@@ -481,7 +481,7 @@ bool MenuHandler::OnEvent(const irr::SEvent& event) { ...@@ -481,7 +481,7 @@ bool MenuHandler::OnEvent(const irr::SEvent& event) {
std::wstring message = L""; std::wstring message = L"";
bool in_message = false; bool in_message = false;
while(fgets(linebuf, 1024, fp)) { while(fgets(linebuf, 1024, fp)) {
if(!strnicmp(linebuf, "--[[message", 11)) { if(!strncmp(linebuf, "--[[message", 11)) {
size_t len = strlen(linebuf); size_t len = strlen(linebuf);
char* msgend = strrchr(linebuf, ']'); char* msgend = strrchr(linebuf, ']');
if(len <= 13) { if(len <= 13) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment