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

Unified Diff: runtime/bin/directory_macos.cc

Issue 25553002: Fix breakage from r28097 (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix break in docgen test. Created 7 years, 3 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 | « pkg/docgen/test/single_library_test.dart ('k') | sdk/lib/io/directory_impl.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/directory_macos.cc
diff --git a/runtime/bin/directory_macos.cc b/runtime/bin/directory_macos.cc
index d31f2206b098c2e30edfd46d6eb4fabe6a902a65..5757a9c1a05075795acf968827ede4c2c4fa463d 100644
--- a/runtime/bin/directory_macos.cc
+++ b/runtime/bin/directory_macos.cc
@@ -393,7 +393,7 @@ char* Directory::CreateTemp(const char* const_template, bool system) {
if (result == NULL) {
return NULL;
}
- int length = strnlen(path.AsString(), PATH_MAX);
+ int length = strlen(path.AsString());
result = static_cast<char*>(malloc(length + 1));
strncpy(result, path.AsString(), length);
result[length] = '\0';
« no previous file with comments | « pkg/docgen/test/single_library_test.dart ('k') | sdk/lib/io/directory_impl.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698