fixed bug with substring on ZString.

This commit is contained in:
barant 2024-12-23 09:51:10 -08:00
parent 921854e455
commit e5bfd7a840

View File

@ -252,9 +252,8 @@ namespace coreutils {
char *startChar = data + start;
char *endChar = startChar + len;
char newlen = endChar > end ? endChar - end: len;
if(startChar < end) {
if(startChar < end)
return ZString(startChar, newlen);
}
return ZString();
}