all repos — fluxbox @ 49f3715f0cfcdce8fe67e71157ab1efffb920586

custom fork of the fluxbox windowmanager

Fixed getRcFilename
fluxgen fluxgen
commit

49f3715f0cfcdce8fe67e71157ab1efffb920586

parent

2528b513ff69e9e7f5948f4647b39a216cdd3dac

1 files changed, 7 insertions(+), 3 deletions(-)

jump to
M src/fluxbox.ccsrc/fluxbox.cc

@@ -1693,15 +1693,19 @@ }

//-------- 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);