Saturday, August 22, 2009

Fixing "warning: missing sentinel in function call"

I got if for the folowing line:
execl("/bin/sh", "sh", "-c", sessioncommand.c_str(), 0);

Quite easy to fix:
execl("/bin/sh", "sh", "-c", sessioncommand.c_str(), (char*)0);

0 comments:

Post a Comment