summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorfenner <fenner@FreeBSD.org>1996-09-10 00:50:13 +0000
committerfenner <fenner@FreeBSD.org>1996-09-10 00:50:13 +0000
commitc5a6fcbc6ced2de2faae882dbb27a2694688937b (patch)
treec622097f44577c5db187320728a6ae81bdf7725b /sys
parentb365ec4426ac100d90ece4ad8e1fd0a88760df26 (diff)
downloadFreeBSD-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
OpenPOWER on IntegriCloud