Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(680)

Unified Diff: runtime/vm/isolate.cc

Issue 13994008: - Add OS::StrNDup instead of redefining it when needed. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « runtime/platform/globals.h ('k') | runtime/vm/os.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/isolate.cc
===================================================================
--- runtime/vm/isolate.cc (revision 21320)
+++ runtime/vm/isolate.cc (working copy)
@@ -828,7 +828,7 @@
code.is_optimized() ? "false" : "true");
}
buffer.Printf("]}");
- isolate->stacktrace_ = strndup(buffer.buf(), buffer.length());
+ isolate->stacktrace_ = OS::StrNDup(buffer.buf(), buffer.length());
ml.Notify();
return true;
}
@@ -872,7 +872,7 @@
var_name.ToCString(), token_pos, end_pos, value.ToCString());
}
buffer.Printf("]}");
- isolate->stacktrace_ = strndup(buffer.buf(), buffer.length());
+ isolate->stacktrace_ = OS::StrNDup(buffer.buf(), buffer.length());
ml.Notify();
return true;
}
« no previous file with comments | « runtime/platform/globals.h ('k') | runtime/vm/os.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698