diff options
Diffstat (limited to 'base/string_util_posix.h')
-rw-r--r-- | base/string_util_posix.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/base/string_util_posix.h b/base/string_util_posix.h index b3df2ad..a9e3646 100644 --- a/base/string_util_posix.h +++ b/base/string_util_posix.h @@ -35,6 +35,8 @@ #include <string.h> #include <wchar.h> +#include "base/logging.h" + namespace base { inline int strncasecmp(const char* string1, const char* string2, size_t count) { @@ -48,6 +50,7 @@ inline int vsnprintf(char* buffer, size_t size, inline int vswprintf(wchar_t* buffer, size_t size, const wchar_t* format, va_list arguments) { + DCHECK(IsWprintfFormatPortable(format)); return ::vswprintf(buffer, size, format, arguments); } |