summaryrefslogtreecommitdiff
path: root/networking/udhcp/leases.c
diff options
context:
space:
mode:
Diffstat (limited to 'networking/udhcp/leases.c')
-rw-r--r--networking/udhcp/leases.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/networking/udhcp/leases.c b/networking/udhcp/leases.c
index afd41bf..78b0d0a 100644
--- a/networking/udhcp/leases.c
+++ b/networking/udhcp/leases.c
@@ -66,7 +66,7 @@ struct dyn_lease* FAST_FUNC add_lease(
char *p;
if (hostname_len > sizeof(oldest->hostname))
hostname_len = sizeof(oldest->hostname);
- p = safe_strncpy(oldest->hostname, hostname, hostname_len);
+ p = safe_strncpy(oldest->hostname, hostname, hostname_len);
/* sanitization (s/non-ASCII/^/g) */
while (*p) {
if (*p < ' ' || *p > 126)