X-Git-Url: https://git.brokenzipper.com/gitweb?a=blobdiff_plain;ds=sidebyside;f=util%2Fepist%2Fepist.cc;h=f83059435edc458c8cd7edaf4c675cf7c3e71064;hb=41a38bbdaf245f12e58f2609092bfbcf8fba6f78;hp=c10f5a8e6caaa7d83367e5d058ebd6815284eff7;hpb=6d40002093a5d8e665d4f310ea028d22e93e88cb;p=chaz%2Fopenbox diff --git a/util/epist/epist.cc b/util/epist/epist.cc index c10f5a8e..f8305943 100644 --- a/util/epist/epist.cc +++ b/util/epist/epist.cc @@ -1,5 +1,5 @@ // -*- mode: C++; indent-tabs-mode: nil; -*- -// epist.cc for Epistophy - a key handler for NETWM/EWMH window managers. +// epist.cc for Epistrophy - a key handler for NETWM/EWMH window managers. // Copyright (c) 2002 - 2002 Ben Jansens // // Permission is hereby granted, free of charge, to any person obtaining a @@ -112,7 +112,8 @@ bool epist::handleSignal(int sig) { case SIGHUP: cout << "epist: Restarting on request.\n"; execvp(_argv[0], _argv); - execvp(basename(_argv[0]), _argv); + string base(basename(_argv[0])); + execvp(base.c_str(), _argv); return false; // this should be unreachable case SIGTERM: