summaryrefslogtreecommitdiff
path: root/src/transport/gnunet-helper-transport-wlan.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/transport/gnunet-helper-transport-wlan.c')
-rw-r--r--src/transport/gnunet-helper-transport-wlan.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/transport/gnunet-helper-transport-wlan.c b/src/transport/gnunet-helper-transport-wlan.c
index 83ade115b..f1b190993 100644
--- a/src/transport/gnunet-helper-transport-wlan.c
+++ b/src/transport/gnunet-helper-transport-wlan.c
@@ -2004,7 +2004,7 @@ main (int argc, char *argv[])
(void) close (dev.fd_raw);
return 1;
}
- strncpy (dev.iface, argv[1], IFNAMSIZ);
+ memcpy (dev.iface, argv[1], IFNAMSIZ);
if (0 != open_device_raw (&dev))
{
(void) close (dev.fd_raw);