all repos — fluxbox @ 1aa01577abf19c6073e9599fdddb13596360fa3a

custom fork of the fluxbox windowmanager

fixed small bug in expandFilename
fluxgen fluxgen
commit

1aa01577abf19c6073e9599fdddb13596360fa3a

parent

ed2da1f1418763b3a6fe259928639d15ffe7eda2

1 files changed, 2 insertions(+), 2 deletions(-)

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

@@ -19,7 +19,7 @@ // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING

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