From: dimich@chromium.org Date: Mon, 21 Mar 2011 23:44:14 +0000 (+0000) Subject: Another Lint fix. X-Git-Tag: upstream/4.7.83~19858 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=02a8f3cbb993f87b4e8ac2392e8afe20ea37a372;p=platform%2Fupstream%2Fv8.git Another Lint fix. Review URL: http://codereview.chromium.org/6716012 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@7298 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- diff --git a/src/platform-win32.cc b/src/platform-win32.cc index 9fbc629..50a9e5b 100644 --- a/src/platform-win32.cc +++ b/src/platform-win32.cc @@ -756,7 +756,7 @@ char* OS::StrChr(char* str, int c) { void OS::StrNCpy(Vector dest, const char* src, size_t n) { // Use _TRUNCATE or strncpy_s crashes (by design) if buffer is too small. size_t buffer_size = static_cast(dest.length()); - if (n + 1 > buffer_size) // count for trailing '\0' + if (n + 1 > buffer_size) // count for trailing '\0' n = _TRUNCATE; int result = strncpy_s(dest.start(), dest.length(), src, n); USE(result);