From 2127e63da28077d8ef34aacc83cffdde1f4520e7 Mon Sep 17 00:00:00 2001 From: seife Date: Sat, 5 Nov 2011 11:36:01 +0000 Subject: [PATCH] neutrino/nhttpd: fix compiler warning in mod_yparser git-svn-id: file:///home/bas/coolstream_public_svn/THIRDPARTY/applications/neutrino-beta@1817 e54a6e83-5905-42d5-8d5c-058d10e6a962 --- src/nhttpd/yhttpd_mods/mod_yparser.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/nhttpd/yhttpd_mods/mod_yparser.cpp b/src/nhttpd/yhttpd_mods/mod_yparser.cpp index 0f967ab37..3b8cd282f 100644 --- a/src/nhttpd/yhttpd_mods/mod_yparser.cpp +++ b/src/nhttpd/yhttpd_mods/mod_yparser.cpp @@ -718,7 +718,8 @@ std::string CyParser::func_do_reload_httpd_config(CyhookHandler *, std::string) std::string CyParser::func_change_httpd(CyhookHandler *hh, std::string para) { if (para != "" && access(para.c_str(), 4) == 0) { hh->status = HANDLED_ABORT; - int err = execvp(para.c_str(), NULL); // no return if successful + char * argv[2] = { (char *)para.c_str(), NULL }; + int err = execvp(argv[0], argv); // no return if successful return "ERROR [change_httpd]: execvp returns error code: " + err; } else return "ERROR [change_httpd]: para has not path to a file";