mirror of
https://github.com/atom/atom.git
synced 2026-01-24 06:18:03 -05:00
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:
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user