summaryrefslogtreecommitdiffstats
path: root/sbin/dhclient/clparse.c
diff options
context:
space:
mode:
authordim <dim@FreeBSD.org>2011-12-17 01:29:46 +0000
committerdim <dim@FreeBSD.org>2011-12-17 01:29:46 +0000
commit7654ad989605547d72d8aa3ea016c9e6a1762bb8 (patch)
tree294029fc441a0427cb9790d2afe188980fe74b5d /sbin/dhclient/clparse.c
parentb10871ad5bc05f5e1d2d18765cd0728ef81badaa (diff)
downloadFreeBSD-src-7654ad989605547d72d8aa3ea016c9e6a1762bb8.zip
FreeBSD-src-7654ad989605547d72d8aa3ea016c9e6a1762bb8.tar.gz
In sbin/dhclient, since we know the size of the source strings anyway,
we might as well use memcpy; strlcpy is really unnecessary here. MFC after: 1 week
Diffstat (limited to 'sbin/dhclient/clparse.c')
-rw-r--r--sbin/dhclient/clparse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/dhclient/clparse.c b/sbin/dhclient/clparse.c
index fea935a..58de8cc 100644
--- a/sbin/dhclient/clparse.c
+++ b/sbin/dhclient/clparse.c
@@ -895,7 +895,7 @@ parse_string_list(FILE *cfile, struct string_list **lp, int multiple)
tmp = new_string_list(valsize);
if (tmp == NULL)
error("no memory for string list entry.");
- strlcpy(tmp->string, val, valsize);
+ memcpy(tmp->string, val, valsize);
tmp->next = NULL;
/* Store this medium at the end of the media list. */
OpenPOWER on IntegriCloud