all repos — fluxbox @ 6fbe0e44d63d2ce556e9b929dad81878ae4d5155

custom fork of the fluxbox windowmanager

applied patches from openbsd-ports, closed #1105041 (sf)

    execl needs a terminating NULL at the end, a '0' would be
    converted to "int 0" on 64bit-systems
mathias mathias
commit

6fbe0e44d63d2ce556e9b929dad81878ae4d5155

parent

52a8360e5b44d84198d46b59ca51a79887812908

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

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

@@ -131,11 +131,11 @@ displaystring.erase(displaystring.size()-1);

displaystring += intbuff; setsid(); putenv(const_cast<char *>(displaystring.c_str())); - execl("/bin/sh", "/bin/sh", "-c", m_cmd.c_str(), 0); + execl("/bin/sh", "/bin/sh", "-c", m_cmd.c_str(), static_cast<void*>(NULL)); exit(0); } #else // __EMX__ - spawnlp(P_NOWAIT, "cmd.exe", "cmd.exe", "/c", m_cmd.c_str(), 0); + spawnlp(P_NOWAIT, "cmd.exe", "cmd.exe", "/c", m_cmd.c_str(), static_cast<void*>(NULL)); #endif // !__EMX__ }
M util/fbrun/FbRun.ccutil/fbrun/FbRun.cc

@@ -117,7 +117,7 @@

// fork and execute program if (!fork()) { setsid(); - execl("/bin/sh", "/bin/sh", "-c", command.c_str(), 0); + execl("/bin/sh", "/bin/sh", "-c", command.c_str(), static_cast<void*>(NULL)); exit(0); //exit child }