From 49f3715f0cfcdce8fe67e71157ab1efffb920586 Mon Sep 17 00:00:00 2001
From: fluxgen <fluxgen>
Date: Tue, 8 Jan 2002 11:36:43 +0000
Subject: Fixed getRcFilename

---
 src/fluxbox.cc | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

diff --git a/src/fluxbox.cc b/src/fluxbox.cc
index 6369212..8f8e044 100644
--- a/src/fluxbox.cc
+++ b/src/fluxbox.cc
@@ -1693,15 +1693,19 @@ void Fluxbox::save_rc(void) {
 
 //-------- getRcFilename -------------
 // Returns filename of resource file
+// TODO: possible replacement with strstream?
 //------------------------------------
 char *Fluxbox::getRcFilename() {
 	char *dbfile=0;
  
 	if (!rc_file) {
-		strstream str;
-		str<<getenv("HOME")<<"/."<<RC_PATH<<"/"<<RC_INIT_FILE;		
 		
-		return StringUtil::strdup(str.str());
+		string str(getenv("HOME")+string("/.")+RC_PATH+string("/")+RC_INIT_FILE);		
+		#ifdef DEBUG
+		cerr<<__FILE__<<"("<<__LINE__<<"): str.size()="<<str.size()<<endl;
+		cerr<<__FILE__<<"("<<__LINE__<<"): str="<<str<<endl;
+		#endif
+		return StringUtil::strdup(str.c_str());
 	} else
 		dbfile = StringUtil::strdup(rc_file);
  
-- 
cgit v0.11.2