Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: src/lib/libc/string



Module Name:    src
Committed By:   riastradh
Date:           Fri Aug 11 16:05:56 UTC 2023

Modified Files:
        src/lib/libc/string: strcpy.3

Log Message:
strcpy(3): Note that strlcpy(3) is a safer replacement for strcpy(3).

Suggest snprintf("%s") as a more portable alternative too.

Note that both strlcpy and snprintf still require the input to be
NUL-terminated.


To generate a diff of this commit:
cvs rdiff -u -r1.25 -r1.26 src/lib/libc/string/strcpy.3

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.




Home | Main Index | Thread Index | Old Index