From 207ca4790eb0187319289f4db3eddf418baad654 Mon Sep 17 00:00:00 2001 From: Raphael Coeffic Date: Fri, 14 Jul 2006 10:02:08 +0000 Subject: [PATCH] fixes the add2path function (adding '/' at the right place). git-svn-id: http://svn.berlios.de/svnroot/repos/sems/trunk@68 8eb893ce-cfd4-0310-b710-fb5ebe64c474 --- core/AmUtils.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/AmUtils.cpp b/core/AmUtils.cpp index 01f9ecf0..89b93194 100644 --- a/core/AmUtils.cpp +++ b/core/AmUtils.cpp @@ -523,7 +523,7 @@ string add2path( const string& path, int n_suffix, ...) const char* s = va_arg(ap,const char*); - if(!path.empty() && (path[path.length()-1] != '/')) + if(!outpath.empty() && (outpath[outpath.length()-1] != '/')) outpath += '/'; outpath += s;