summaryrefslogtreecommitdiffstats
path: root/sbin
diff options
context:
space:
mode:
Diffstat (limited to 'sbin')
-rw-r--r--sbin/dhclient/clparse.c2
-rw-r--r--sbin/dhclient/parse.c4
2 files changed, 3 insertions, 3 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. */
diff --git a/sbin/dhclient/parse.c b/sbin/dhclient/parse.c
index 13e8373..e548bd3 100644
--- a/sbin/dhclient/parse.c
+++ b/sbin/dhclient/parse.c
@@ -129,7 +129,7 @@ parse_string(FILE *cfile)
s = malloc(valsize);
if (!s)
error("no memory for string %s.", val);
- strlcpy(s, val, valsize);
+ memcpy(s, val, valsize);
if (!parse_semi(cfile))
return (NULL);
@@ -295,7 +295,7 @@ parse_numeric_aggregate(FILE *cfile, unsigned char *buf, int *max,
t = malloc(valsize);
if (!t)
error("no temp space for number.");
- strlcpy(t, val, valsize);
+ memcpy(t, val, valsize);
c = cons(t, c);
}
} while (++count != *max);
OpenPOWER on IntegriCloud