From bbc4b594fefed5ac2142d85660451ef7c009588d Mon Sep 17 00:00:00 2001 From: Antonio SJ Musumeci Date: Tue, 27 May 2014 07:17:32 -0400 Subject: [PATCH] fs::make_path should check for forward slashes, add if missing --- src/fs.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/fs.cpp b/src/fs.cpp index 6aca5479..f11847d2 100644 --- a/src/fs.cpp +++ b/src/fs.cpp @@ -138,7 +138,10 @@ namespace fs make_path(const string base, const string suffix) { - return base + suffix; + if(*base.rbegin() == '/' || + *suffix.rbegin() == '/') + return base + suffix; + return base + '/' + suffix; } bool