Commit cf4747c7 authored by lrn@chromium.org's avatar lrn@chromium.org

Use OS::StrDup to duplicate strings.


git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@735 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
parent a03b447b
......@@ -248,7 +248,7 @@ List<const char*>* FlagList::argv() {
args->Add(buffer.ToCString().Detach());
JSArguments jsargs = *args_flag->args_variable();
for (int j = 0; j < jsargs.argc(); j++) {
args->Add(reinterpret_cast<const char*>(strdup(jsargs[j])));
args->Add(OS::StrDup(jsargs[j]));
}
}
return args;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment