Fixed MString and MFile.

This commit is contained in:
Brad Arant committed 2025-12-04 16:40:11 -08:00
1 parent 11d6f00bfb
commit 829dc1a3c7
12 files changed
+65 -22

No files matched your search

+11 -4
View File
@@ -117,11 +117,18 @@ namespace coreutils {
}
bool ZString::operator!=(const char *valuex) const {
if(strlen(valuex) != length)
return true;
return (strncmp(data, valuex, length) != 0);
if(valuex == NULL) {
if(length == 0)
return false;
else
return true;
} else {
if(strlen(valuex) != length)
return true;
return (strncmp(data, valuex, length) != 0);
}
}
std::vector<ZString> &ZString::getList() {
return list;
}