summaryrefslogtreecommitdiff
path: root/src/FbCommands.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/FbCommands.cc')
-rw-r--r--src/FbCommands.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/FbCommands.cc b/src/FbCommands.cc
index fbe41bd..8d57456 100644
--- a/src/FbCommands.cc
+++ b/src/FbCommands.cc
@@ -131,11 +131,11 @@ void ExecuteCmd::execute() {
131 displaystring += intbuff; 131 displaystring += intbuff;
132 setsid(); 132 setsid();
133 putenv(const_cast<char *>(displaystring.c_str())); 133 putenv(const_cast<char *>(displaystring.c_str()));
134 execl("/bin/sh", "/bin/sh", "-c", m_cmd.c_str(), 0); 134 execl("/bin/sh", "/bin/sh", "-c", m_cmd.c_str(), static_cast<void*>(NULL));
135 exit(0); 135 exit(0);
136 } 136 }
137#else // __EMX__ 137#else // __EMX__
138 spawnlp(P_NOWAIT, "cmd.exe", "cmd.exe", "/c", m_cmd.c_str(), 0); 138 spawnlp(P_NOWAIT, "cmd.exe", "cmd.exe", "/c", m_cmd.c_str(), static_cast<void*>(NULL));
139#endif // !__EMX__ 139#endif // !__EMX__
140 140
141} 141}