Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 18 Jul 2001 14:52:58 -0400
From:      David Hill <david@phobia.ms>
To:        audit@freebsd.org
Subject:   strlcpy patches
Message-ID:  <20010718145258.1d829df6.david@phobia.ms>

next in thread | raw e-mail | index | archive | help
Greetings.
I have patched some source files replacing:

strncpy(dst, src, sizeof(dst) - 1);
dst[sizeof(dst)-1] = '\0';

with 

strlcpy(dst, src, sizeof dst);

They are located at http://www.phobia.ms/patches

What are your thoughts?

Thanks
- David

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-audit" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010718145258.1d829df6.david>