We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9165391 commit d64a9c7Copy full SHA for d64a9c7
src/exchndl/exchndl.cpp
@@ -192,7 +192,8 @@ Setup(void)
192
path.resize(nSize);
193
auto found = std::find(path.crbegin(), path.crend(), '.');
194
if (found != path.crend()) {
195
- path.resize(found - path.crbegin());
+ // Reverse iterators here, hence crend() points to string start
196
+ path.resize(path.crend() - found - 1);
197
}
198
path.push_back('.');
199
path.push_back('R');
0 commit comments