diff --git a/include/strings.cpp b/include/strings.cpp index 949341897..294c7dac0 100755 --- a/include/strings.cpp +++ b/include/strings.cpp @@ -1204,7 +1204,7 @@ const char* TFilename::path() const xvt_fsys_parse_pathname(_str, v, d, NULL, NULL, NULL); TString& spark = get_tmp_string(); spark << v << d; - if (spark.not_empty()) + if (spark.not_empty() && !is_slash(spark.right(1)[0])) spark << SLASH; return spark; }