From f54e8c82dc843aee294e61882d049b3870b458f0 Mon Sep 17 00:00:00 2001 From: lurchi Date: Thu, 27 Jun 2019 11:12:42 +0200 Subject: no null-termination necessary after GNUNET_strlcpy --- src/exit/gnunet-helper-exit-windows.c | 1 - src/vpn/gnunet-helper-vpn-windows.c | 1 - 2 files changed, 2 deletions(-) diff --git a/src/exit/gnunet-helper-exit-windows.c b/src/exit/gnunet-helper-exit-windows.c index 1e17ceaac..85a06c539 100644 --- a/src/exit/gnunet-helper-exit-windows.c +++ b/src/exit/gnunet-helper-exit-windows.c @@ -1536,7 +1536,6 @@ main (int argc, char **argv) } GNUNET_strlcpy (hwid, argv[1], sizeof (hwid)); - hwid[LINE_LEN - 1] = '\0'; /* * We use our PID for finding/resolving the control-panel name of our virtual diff --git a/src/vpn/gnunet-helper-vpn-windows.c b/src/vpn/gnunet-helper-vpn-windows.c index 4ccecb873..ea4d30347 100644 --- a/src/vpn/gnunet-helper-vpn-windows.c +++ b/src/vpn/gnunet-helper-vpn-windows.c @@ -1533,7 +1533,6 @@ main (int argc, char **argv) } GNUNET_strlcpy (hwid, argv[1], sizeof (hwid)); - hwid[LINE_LEN - 1] = '\0'; /* * We use our PID for finding/resolving the control-panel name of our virtual -- cgit v1.2.3