forked from pool/Botan
25 lines
977 B
Diff
25 lines
977 B
Diff
--- modules/es_unix/unix_cmd.cpp
|
|
+++ modules/es_unix/unix_cmd.cpp
|
|
@@ -31,16 +31,16 @@
|
|
{
|
|
const u32bit args = arg_list.size() - 1;
|
|
|
|
- const char* arg1 = (args >= 1) ? arg_list[1].c_str() : 0;
|
|
- const char* arg2 = (args >= 2) ? arg_list[2].c_str() : 0;
|
|
- const char* arg3 = (args >= 3) ? arg_list[3].c_str() : 0;
|
|
- const char* arg4 = (args >= 4) ? arg_list[4].c_str() : 0;
|
|
+ const char* arg1 = (args >= 1) ? arg_list[1].c_str() : (char *)0;
|
|
+ const char* arg2 = (args >= 2) ? arg_list[2].c_str() : (char *)0;
|
|
+ const char* arg3 = (args >= 3) ? arg_list[3].c_str() : (char *)0;
|
|
+ const char* arg4 = (args >= 4) ? arg_list[4].c_str() : (char *)0;
|
|
|
|
for(u32bit j = 0; j != paths.size(); j++)
|
|
{
|
|
const std::string full_path = paths[j] + "/" + arg_list[0];
|
|
const char* fsname = full_path.c_str();
|
|
- execl(fsname, fsname, arg1, arg2, arg3, arg4, 0);
|
|
+ execl(fsname, fsname, arg1, arg2, arg3, arg4, (char *)0);
|
|
}
|
|
}
|
|
|