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

Unified Diff: content/renderer/android/address_detector.cc

Issue 10332192: char16 array should be null-terminated to be assigned to string16 (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Created 8 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/android/address_detector.cc
diff --git a/content/renderer/android/address_detector.cc b/content/renderer/android/address_detector.cc
index fb942482e533332c14a1f6fedb4fb8bad10a6623..6d81c727265277562a8b6dc204e4bd76e61ac2a2 100644
--- a/content/renderer/android/address_detector.cc
+++ b/content/renderer/android/address_detector.cc
@@ -55,6 +55,7 @@ const char16 kNewlineDelimiters[] = {
',',
'*',
0x2022, // Unicode bullet
+ 0,
};
char16 SafePreviousChar(const string16::const_iterator& it,
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698