DragonFly commits List (threaded) for 2004-09
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]
Re: cvs commit: src/share/man/man9
That would probably be overkill for style.9. The
strncpy manual pages does talk about strlcpy.
-Matt
Matthew Dillon
<dillon@xxxxxxxxxxxxx>
:From: "Matthew Dillon" <dillon@xxxxxxxxxxxxxxxxxxxxxxx>
:> Modified files:
:> share/man/man9 style.9
:> Log:
:> Minor style cleanups. Start a list of obsolete functions that should no
:> longer be used, and add a warning about the use of unbounded string
:functions.
:Hey, it wouldn't be a bad idea to also mention that strlcpy should sometimes
:be used over strncpy, would it? OpenBSD created the function because
:strncpy's security is insufficient in some cases, so I guess it wouldn't be
:a bad thing to mention that. Also, I think that it is important to mention
:what function should be used instead of the proposed LEGACY functions..
:Avoiding race conditions using mkstemp instead of mktemp is an important
:thing.
:I am looking at style(9) now and from what I see it doesn't mention the
:importance of error checking either.
:Want me to submit patches for this, or do you want to change it yourself?
:
:Greetings,
:Douwe
[
Date Prev][
Date Next]
[
Thread Prev][
Thread Next]
[
Date Index][
Thread Index]