X-Git-Url: http://git.tdb.fi/?p=libs%2Fcore.git;a=blobdiff_plain;f=source%2Ffs%2Fpath.cpp;h=4db7f0cc140185d46234aa54eebfb1042af4e160;hp=703be2b404744cbe76515ca4ebf40c4226649267;hb=d6a72ed8ba181dc35bd750811bf4a10a5583d472;hpb=105d334b3dc59b5d5def485e438d63e203805f2e diff --git a/source/fs/path.cpp b/source/fs/path.cpp index 703be2b..4db7f0c 100644 --- a/source/fs/path.cpp +++ b/source/fs/path.cpp @@ -39,7 +39,7 @@ void Path::init(const string &p) { string::size_type slash = p.find_first_of("/\\", start); if(slash>start || start==0) - add_component(p.substr(start, max(slash-start, 1U))); + add_component(p.substr(start, max(slash-start, 1U))); if(slash==string::npos) break; start = slash+1;