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

Issue 552042: Add doc to OS::StrNCpy (Closed)

Created:
10 years, 11 months ago by Peter Rybin
Modified:
9 years, 7 months ago
CC:
v8-dev
Visibility:
Public.

Description

Add doc to OS::StrNCpy

Patch Set 1 #

Patch Set 2 : clean #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+5 lines, -0 lines) Patch
M src/platform.h View 1 1 chunk +5 lines, -0 lines 2 comments Download

Messages

Total messages: 4 (0 generated)
Peter Rybin
10 years, 11 months ago (2010-01-19 15:56:28 UTC) #1
Mads Ager (chromium)
http://codereview.chromium.org/552042/diff/1001/4 File src/platform.h (right): http://codereview.chromium.org/552042/diff/1001/4#newcode244 src/platform.h:244: // Calls strncpy in POSIX and strncpy_s in Windows. ...
10 years, 11 months ago (2010-01-19 16:07:06 UTC) #2
Søren Thygesen Gjesse
http://codereview.chromium.org/552042/diff/1001/4 File src/platform.h (right): http://codereview.chromium.org/552042/diff/1001/4#newcode244 src/platform.h:244: // Calls strncpy in POSIX and strncpy_s in Windows. ...
10 years, 11 months ago (2010-01-19 16:13:06 UTC) #3
Peter Rybin
10 years, 11 months ago (2010-01-19 16:25:11 UTC) #4
I totally agree we ought to fix this. I think clearly reads between the lines of
comment :)

The only question is should we put the current doc (possibly with TODO) now or
not.
I got used to putting docs/TODO first, and then fixing it.
However, it's a matter of taste.

On 2010/01/19 16:13:06, Søren Gjesse wrote:
> http://codereview.chromium.org/552042/diff/1001/4
> File src/platform.h (right):
> 
> http://codereview.chromium.org/552042/diff/1001/4#newcode244
> src/platform.h:244: // Calls strncpy in POSIX and strncpy_s in Windows. It
means
> that
> Then we should probably stick to the strncpy_s semantics where the dest[0] is
> set to '\0' if dest does not have room for the n characters.

Powered by Google App Engine
This is Rietveld 408576698