Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
9.2.2023: Due to updates GitLab will be unavailable for some minutes between 9:00 and 11:00.
Open sidebar
CAMP
campvis-public
Commits
b39eeb06
Commit
b39eeb06
authored
Jan 21, 2015
by
Christian Schulte zu Berge
Browse files
Fixed an off-by-one bug in StringUtils::splitStringsafe().
parent
7f1a3689
Changes
1
Hide whitespace changes
Inline
Side-by-side
core/tools/stringutils.cpp
View file @
b39eeb06
...
...
@@ -126,7 +126,7 @@ namespace campvis {
endpos
=
str
.
find_first_of
(
delimiter
,
strpos
);
toReturn
.
push_back
(
StringUtils
::
trim
(
str
.
substr
(
strpos
,
endpos
-
strpos
),
whitespace
));
}
strpos
=
endpos
+
delimiter
.
length
();
strpos
=
endpos
+
delimiter
.
length
()
-
1
;
}
return
toReturn
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment