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

Issue 6056006: Fix Windows compilation (Closed)

Created:
9 years, 11 months ago by Søren Thygesen Gjesse
Modified:
9 years, 7 months ago
Reviewers:
piscisaureus, Rico
CC:
v8-dev
Visibility:
Public.

Description

Fix Windows compilation Use strncpy_s instaad of strncpy to avoid warning. Committed: http://code.google.com/p/v8/source/detail?r=6151

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1 line, -1 line) Patch
M src/platform-win32.cc View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 3 (0 generated)
Søren Thygesen Gjesse
9 years, 11 months ago (2011-01-04 12:04:44 UTC) #1
Rico
LGTM
9 years, 11 months ago (2011-01-04 12:09:35 UTC) #2
piscisaureus
9 years, 11 months ago (2011-01-17 20:04:55 UTC) #3
Does this actually work on msvc?
On mingw it certainly doesn't because strncpy_s takes 4 arguments, not 3.
I think it should be strncpy_s(name_, sizeof(name_), name, strlen(name))

Powered by Google App Engine
This is Rietveld 408576698