use of strncpy and strlen
jra at samba.org
Wed Jan 16 18:07:03 GMT 2002
On Wed, Jan 16, 2002 at 06:05:31AM -0500, Green, Paul wrote:
> Some C/Unix implementations now have a "strnlen" function, which is a safe
> version of strlen. I'd be happy to contribute ours to Samba if you'd like
> it. You could then deprecate strlen via the usual macro trick.
Thanks for the offer, but I think for 3.0 we'll go with the strlcpy/strlcat
functions that Andrew already has coded for rsync.
The semantics of these functions make them *very* easy to use to replace
More information about the samba-technical