fixed bug with substring on ZString.
This commit is contained in:
1 parent
921854e455
commit
e5bfd7a840
1 file changed
+2
-3
+2
-3
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user