mirror of
https://github.com/aimrebirth/tools.git
synced 2026-04-15 01:43:25 +00:00
Do not replace spaces in scripts. It causes crashes.
This commit is contained in:
parent
8c135da3ed
commit
0d4b222adc
1 changed files with 1 additions and 1 deletions
|
|
@ -53,7 +53,7 @@ int main(int argc, char *argv[]) {
|
||||||
for (auto &&line : lines) {
|
for (auto &&line : lines) {
|
||||||
boost::to_upper(line); // can be bad?
|
boost::to_upper(line); // can be bad?
|
||||||
boost::trim(line);
|
boost::trim(line);
|
||||||
boost::replace_all(line, " ", ""); // can be bad?
|
//boost::replace_all(line, " ", ""); // causes crashes!
|
||||||
memcpy((char *)s.p, line.c_str(), line.size() + 1);
|
memcpy((char *)s.p, line.c_str(), line.size() + 1);
|
||||||
s.skip(line.size() + 1);
|
s.skip(line.size() + 1);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue