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

Unified Diff: chrome/installer/mini_installer/mini_string.cc

Issue 1126163003: mini_installer: Change to use _countof rather than base's arraysize macro. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
Index: chrome/installer/mini_installer/mini_string.cc
diff --git a/chrome/installer/mini_installer/mini_string.cc b/chrome/installer/mini_installer/mini_string.cc
index c5e401a1621f8d03eeeea276e286f1b744c2782e..1f4b3f10294cdcd064782fdaeb70830f481f0e99 100644
--- a/chrome/installer/mini_installer/mini_string.cc
+++ b/chrome/installer/mini_installer/mini_string.cc
@@ -68,8 +68,8 @@ bool SafeStrCopy(wchar_t* dest, size_t dest_size, const wchar_t* src) {
// failed concatenation. For example:
//
// wchar_t buf[5] = {0};
- // if (!SafeStrCat(buf, arraysize(buf), kLongName))
- // SafeStrCat(buf, arraysize(buf), kShortName);
+ // if (!SafeStrCat(buf, _countof(buf), kLongName))
+ // SafeStrCat(buf, _countof(buf), kShortName);
//
// If we were to return false in the first call to SafeStrCat but still
// mutate the buffer, the buffer will be in an unexpected state.

Powered by Google App Engine
This is Rietveld 408576698