diff --git a/src/main.cpp b/src/main.cpp index 2518d60a13..909069ba0a 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -114,8 +114,8 @@ mainClass(const char* jar) unsigned length; while (readLine(region->start(), region->length(), &start, &length)) { const unsigned PrefixLength = 12; - if (strncmp("Main-Class: ", reinterpret_cast - (region->start() + start), PrefixLength) == 0) + if (strncasecmp("Main-Class: ", reinterpret_cast + (region->start() + start), PrefixLength) == 0) { result = static_cast(malloc(length + 1 - PrefixLength)); memcpy(result, region->start() + start + PrefixLength,