diff options
author | mathias <mathias> | 2005-01-20 12:30:35 (GMT) |
---|---|---|
committer | mathias <mathias> | 2005-01-20 12:30:35 (GMT) |
commit | 6fbe0e44d63d2ce556e9b929dad81878ae4d5155 (patch) | |
tree | 2e704d61ece89117435b1d01cec00c79f077a26c /util/fbrun/FbRun.cc | |
parent | 52a8360e5b44d84198d46b59ca51a79887812908 (diff) | |
download | fluxbox-6fbe0e44d63d2ce556e9b929dad81878ae4d5155.zip fluxbox-6fbe0e44d63d2ce556e9b929dad81878ae4d5155.tar.bz2 |
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
Diffstat (limited to 'util/fbrun/FbRun.cc')
-rw-r--r-- | util/fbrun/FbRun.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/util/fbrun/FbRun.cc b/util/fbrun/FbRun.cc index da3ee6b..118b82d 100644 --- a/util/fbrun/FbRun.cc +++ b/util/fbrun/FbRun.cc | |||
@@ -117,7 +117,7 @@ void FbRun::run(const std::string &command) { | |||
117 | // fork and execute program | 117 | // fork and execute program |
118 | if (!fork()) { | 118 | if (!fork()) { |
119 | setsid(); | 119 | setsid(); |
120 | execl("/bin/sh", "/bin/sh", "-c", command.c_str(), 0); | 120 | execl("/bin/sh", "/bin/sh", "-c", command.c_str(), static_cast<void*>(NULL)); |
121 | exit(0); //exit child | 121 | exit(0); //exit child |
122 | } | 122 | } |
123 | 123 | ||