summaryrefslogtreecommitdiff
path: root/sethdlc-new.c
diff options
context:
space:
mode:
Diffstat (limited to 'sethdlc-new.c')
-rw-r--r--sethdlc-new.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sethdlc-new.c b/sethdlc-new.c
index 1765c32..376a3f4 100644
--- a/sethdlc-new.c
+++ b/sethdlc-new.c
@@ -673,7 +673,7 @@ int main(int arg_c, char *arg_v[])
if (sock < 0)
error("Unable to create socket: %s\n", strerror(errno));
- strncpy(req.ifr_name, argv[1], sizeof(req.ifr_name) - 1); /* Device name */
+ zap_copy_string(req.ifr_name, argv[1], sizeof(req.ifr_name)); /* Device name */
if (argc == 2)
show_port();