more serious work on JString.
This commit is contained in:
1 parent
c6e0486c14
commit
0d60cce8dc
8 files changed
+49
-45
No files matched your search
+2
-2
@@ -107,7 +107,7 @@ namespace coreutils {
|
||||
bool ZString::operator==(const ZString valuex) {
|
||||
if(valuex.getLength() != length)
|
||||
return false;
|
||||
return (strncmp(data, valuex.data, valuex.length <= length ? valuex.length : length) == 0);
|
||||
return (strncmp(data, valuex.data, length) == 0);
|
||||
}
|
||||
|
||||
bool ZString::operator!=(const ZString &valuex) const {
|
||||
@@ -314,7 +314,7 @@ namespace coreutils {
|
||||
char previous = 0;
|
||||
char *start = cursor;
|
||||
do {
|
||||
while ((cursor <= (data + length)) && !isCharacter(*cursor, exclude)) {
|
||||
while ((cursor < (data + length)) && !isCharacter(*cursor, exclude)) {
|
||||
previous = *cursor;
|
||||
++cursor;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user