fixed bug with substring on ZString.
This commit is contained in:
parent
921854e455
commit
e5bfd7a840
@ -252,9 +252,8 @@ namespace coreutils {
|
||||
char *startChar = data + start;
|
||||
char *endChar = startChar + len;
|
||||
char newlen = endChar > end ? endChar - end: len;
|
||||
if(startChar < end) {
|
||||
return ZString(startChar, newlen);
|
||||
}
|
||||
if(startChar < end)
|
||||
return ZString(startChar, newlen);
|
||||
return ZString();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user