// -*- 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 <ben at orodu.net>
//
// Permission is hereby granted, free of charge, to any person obtaining a
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: