We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 072339c commit 33a06ecCopy full SHA for 33a06ec
src/io/IOUtil.hpp
@@ -109,7 +109,7 @@ namespace kanzi
109
// Note: old version of Windows/Visual Studio require a trailing '/' to stat network folders !
110
// In this scenario, "//PC/share" does not work but "//PC/share/" does
111
#ifndef _MSC_VER
112
- if (target[target.size() - 1] == PATH_SEPARATOR)
+ if ((target.size() > 1) && (target[target.size() - 1] == PATH_SEPARATOR))
113
target.resize(target.size() - 1);
114
#endif
115
0 commit comments