Allow null characters in child process output

This is needed because grep uses a null character as a delimiter after the file path.
This commit is contained in:
Nathan Sobo
2012-07-11 18:45:57 -06:00
parent 8f5746c8fe
commit 92f4519db2

View File

@@ -452,7 +452,7 @@ bool NativeHandler::Execute(const CefString& name,
CefV8ValueList args;
CefRefPtr<CefV8Value> retval = CefV8Value::CreateBool(YES);
CefRefPtr<CefV8Exception> e;
args.push_back(CefV8Value::CreateString([contents UTF8String]));
args.push_back(CefV8Value::CreateString(std::string([contents UTF8String], [contents length])));
function->ExecuteFunction(function, args, retval, e, true);
[contents release];