Fix compiler warning

"missing sentinel functions call" in src/system/helpers.cpp


Origin commit data
------------------
Branch: ni/coolstream
Commit: 37c4b21ac3
Author: Michael Liebmann <tuxcode.bbg@gmail.com>
Date: 2012-10-21 (Sun, 21 Oct 2012)

Origin message was:
------------------
* Fix compiler warning

 "missing sentinel functions call" in src/system/helpers.cpp


------------------
This commit was generated by Migit
This commit is contained in:
Michael Liebmann
2012-10-21 15:34:28 +02:00
parent d4073693d9
commit a1161694f8

View File

@@ -82,7 +82,7 @@ int my_system(const char * cmd, const char * arg1, const char * arg2, const char
case 0: /* child process */
for(i = 3; i < maxfd; i++)
close(i);
if(execlp(cmd, cmd, arg1, arg2, arg3, arg4, arg5, arg6, NULL))
if(execlp(cmd, cmd, arg1, arg2, arg3, arg4, arg5, arg6, (char*)NULL))
{
std::string txt = "ERROR: my_system \"" + (std::string) cmd + "\"";
perror(txt.c_str());