The NetBSD Project

CVS log for src/lib/libc/string/strncpy.3

[BACK] Up to [cvs.NetBSD.org] / src / lib / libc / string

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.16 / (download) - annotate - [select for diffs], Sun Aug 13 11:27:22 2023 UTC (6 months, 3 weeks ago) by riastradh
Branch: MAIN
CVS Tags: HEAD
Changes since 1.15: +27 -5 lines
Diff to previous 1.15 (colored)

strncpy(3): More on how strlcpy is not a safe strncpy replacement.

Revision 1.15 / (download) - annotate - [select for diffs], Fri Aug 11 21:32:26 2023 UTC (6 months, 3 weeks ago) by riastradh
Branch: MAIN
Changes since 1.14: +2 -2 lines
Diff to previous 1.14 (colored)

strncpy(3): Fix column sizing.

Revision 1.14 / (download) - annotate - [select for diffs], Fri Aug 11 21:20:39 2023 UTC (6 months, 3 weeks ago) by riastradh
Branch: MAIN
Changes since 1.13: +3 -3 lines
Diff to previous 1.13 (colored)

strlcpy(3), strncpy(3): Omit needless (void) casts in examples.

The return values are not critical.

Revision 1.13 / (download) - annotate - [select for diffs], Fri Aug 11 21:17:16 2023 UTC (6 months, 3 weeks ago) by riastradh
Branch: MAIN
Changes since 1.12: +5 -5 lines
Diff to previous 1.12 (colored)

strcpy(3), strlcpy(3), strncpy(3): Just say `byte', not `character'.

Revision 1.12 / (download) - annotate - [select for diffs], Fri Aug 11 21:12:10 2023 UTC (6 months, 3 weeks ago) by riastradh
Branch: MAIN
Changes since 1.11: +2 -2 lines
Diff to previous 1.11 (colored)

strncpy(3): Tiny wording tweak.

Revision 1.11 / (download) - annotate - [select for diffs], Fri Aug 11 21:11:21 2023 UTC (6 months, 3 weeks ago) by riastradh
Branch: MAIN
Changes since 1.10: +3 -3 lines
Diff to previous 1.10 (colored)

strncpy(3): Reword to make sentence structure parallel.

Revision 1.10 / (download) - annotate - [select for diffs], Fri Aug 11 21:10:26 2023 UTC (6 months, 3 weeks ago) by riastradh
Branch: MAIN
Changes since 1.9: +2 -2 lines
Diff to previous 1.9 (colored)

strncpy(3): Fix typo -- stpncpy, not stpcpy which is different.

Revision 1.9 / (download) - annotate - [select for diffs], Fri Aug 11 21:09:11 2023 UTC (6 months, 3 weeks ago) by riastradh
Branch: MAIN
Changes since 1.8: +60 -37 lines
Diff to previous 1.8 (colored)

strncpy(3): Take another whack at clarifying this.

Emphasize the fixed-buffer nature of it, and that NUL-termination is
neither required on input nor guaranteed on output.

Revision 1.8 / (download) - annotate - [select for diffs], Fri Aug 11 16:04:25 2023 UTC (6 months, 3 weeks ago) by riastradh
Branch: MAIN
Changes since 1.7: +63 -36 lines
Diff to previous 1.7 (colored)

strncpy(3): Rework the example in an attempt to improve exposition.

Revision 1.7 / (download) - annotate - [select for diffs], Fri Aug 11 15:37:55 2023 UTC (6 months, 3 weeks ago) by riastradh
Branch: MAIN
Changes since 1.6: +2 -1 lines
Diff to previous 1.6 (colored)

strncpy(3): Note strcpy(3) man page revision this forked from.

Revision 1.6 / (download) - annotate - [select for diffs], Fri Aug 11 15:36:17 2023 UTC (6 months, 3 weeks ago) by riastradh
Branch: MAIN
Changes since 1.5: +7 -7 lines
Diff to previous 1.5 (colored)

strcpy(3), strlcpy(3), strncpy(3): Use `.Tn NUL' for the zero byte.

Let's be consistent within these man pages.  (If someone else really
likes the unpronounceable `.Ql \e0' better, that's fine, you can go
through and systematically change all the man pages to use that after
we're done clarifying strcpy(3), strncpy(3), and strlcpy(3).)

Revision 1.5 / (download) - annotate - [select for diffs], Fri Aug 11 13:18:24 2023 UTC (6 months, 3 weeks ago) by uwe
Branch: MAIN
Changes since 1.4: +18 -10 lines
Diff to previous 1.4 (colored)

strncpy(3): markup tweaks

NUL is a character name, not a defined name, use .Tn
.Ns has implicit .No effect
Use \*q for ASCII quotes (.Dq uses fancy typographical ones)

Revision 1.4 / (download) - annotate - [select for diffs], Fri Aug 11 13:10:59 2023 UTC (6 months, 3 weeks ago) by uwe
Branch: MAIN
Changes since 1.3: +4 -2 lines
Diff to previous 1.3 (colored)

strncpy(3): use .Sm off/on around a fancy expression to avoid lots of Ns

Revision 1.3 / (download) - annotate - [select for diffs], Fri Aug 11 12:26:59 2023 UTC (6 months, 3 weeks ago) by riastradh
Branch: MAIN
Changes since 1.2: +2 -2 lines
Diff to previous 1.2 (colored)

strncpy(3): Slightly more consistency about NUL vs '\0' in the text.

Revision 1.2 / (download) - annotate - [select for diffs], Fri Aug 11 11:51:54 2023 UTC (6 months, 3 weeks ago) by riastradh
Branch: MAIN
Changes since 1.1: +23 -4 lines
Diff to previous 1.1 (colored)

strncpy(3): Qualify example of strlcpy(3) with a major caveat.

Revision 1.1 / (download) - annotate - [select for diffs], Fri Aug 11 09:39:39 2023 UTC (6 months, 3 weeks ago) by riastradh
Branch: MAIN

strncpy(3), stpncpy(3): Split man page out of strcpy(3), stpcpy(3).

These are for substantively different purposes (fixed-width fields
with optional NUL padding vs NUL-terminated strings), so they don't
belong together.

Be more specific about the security issues.

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




CVSweb <webmaster@jp.NetBSD.org>