From 92f4519db29ab166776ae8eb3c90c2402c8cdc7e Mon Sep 17 00:00:00 2001 From: Nathan Sobo Date: Wed, 11 Jul 2012 18:45:57 -0600 Subject: [PATCH] Allow null characters in child process output This is needed because grep uses a null character as a delimiter after the file path. --- Atom/src/native_handler.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Atom/src/native_handler.mm b/Atom/src/native_handler.mm index 1460cbb7e..3c07fd35d 100644 --- a/Atom/src/native_handler.mm +++ b/Atom/src/native_handler.mm @@ -452,7 +452,7 @@ bool NativeHandler::Execute(const CefString& name, CefV8ValueList args; CefRefPtr retval = CefV8Value::CreateBool(YES); CefRefPtr 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];