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

Unified Diff: runtime/vm/os_win.cc

Issue 1989513002: strnlen is not always available. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 7 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/vm/os_macos.cc ('k') | runtime/vm/snapshot.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/os_win.cc
diff --git a/runtime/vm/os_win.cc b/runtime/vm/os_win.cc
index bb2d6349de6739e139830c0b41470531b22d74a0..383daf18265bd24a78eedf4c75d351058ae05307 100644
--- a/runtime/vm/os_win.cc
+++ b/runtime/vm/os_win.cc
@@ -259,6 +259,11 @@ char* OS::StrNDup(const char* s, intptr_t n) {
}
+intptr_t OS::StrNDup(const char* s, intptr_t n) {
zra 2016/05/17 19:39:27 StrNLen?
+ return strnlen(s, n);
+}
+
+
void OS::Print(const char* format, ...) {
va_list args;
va_start(args, format);
« no previous file with comments | « runtime/vm/os_macos.cc ('k') | runtime/vm/snapshot.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698