diff options
author | fenner <fenner@FreeBSD.org> | 1996-09-10 00:50:13 +0000 |
---|---|---|
committer | fenner <fenner@FreeBSD.org> | 1996-09-10 00:50:13 +0000 |
commit | c5a6fcbc6ced2de2faae882dbb27a2694688937b (patch) | |
tree | c622097f44577c5db187320728a6ae81bdf7725b /sys | |
parent | b365ec4426ac100d90ece4ad8e1fd0a88760df26 (diff) | |
download | FreeBSD-src-c5a6fcbc6ced2de2faae882dbb27a2694688937b.zip FreeBSD-src-c5a6fcbc6ced2de2faae882dbb27a2694688937b.tar.gz |
Change strcpy() to strncpy() in several places, and give gethostname()
the real buffer size. Note that the strncpy(domain, ...) doesn't need to
be a strncpy(), since it is copying from itself to itself, but belts
and suspenders don't hurt and this is not time-critical code.
Fixes the half of PR bin/1581 that wasn't fixed in rev 1.7
Submitted by: Karl <karl@codebase.mcs.net>
Diffstat (limited to 'sys')
0 files changed, 0 insertions, 0 deletions