From 1aa01577abf19c6073e9599fdddb13596360fa3a Mon Sep 17 00:00:00 2001
From: fluxgen <fluxgen>
Date: Sun, 27 Jan 2002 12:46:28 +0000
Subject: fixed small bug in expandFilename

---
 src/StringUtil.cc | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/StringUtil.cc b/src/StringUtil.cc
index ba5f58d..a85735a 100644
--- a/src/StringUtil.cc
+++ b/src/StringUtil.cc
@@ -19,7 +19,7 @@
 // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
 // DEALINGS IN THE SOFTWARE.
 
-//�$Id: StringUtil.cc,v 1.6 2002/01/21 01:56:39 fluxgen Exp $
+//�$Id: StringUtil.cc,v 1.7 2002/01/27 12:46:28 fluxgen Exp $
 
 #include "StringUtil.hh"
 
@@ -67,7 +67,7 @@ char *StringUtil::expandFilename(const char *filename) {
   
 	auto_ptr<char> retval( new char[strlen(filename)+strlen(getenv("HOME"))+2]);
   if (filename[0]=='~') {
-    strcat(retval.get(), getenv("HOME"));
+    strcpy(retval.get(), getenv("HOME"));
     strcat(retval.get(), &filename[1]);
   } else
     return StringUtil::strdup(filename);	//return unmodified value
-- 
cgit v0.11.2