From: lurchi Date: Thu, 27 Jun 2019 09:12:42 +0000 (+0200) Subject: no null-termination necessary after GNUNET_strlcpy X-Git-Tag: v0.11.6~68 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=f54e8c82dc843aee294e61882d049b3870b458f0;p=oweals%2Fgnunet.git no null-termination necessary after GNUNET_strlcpy --- 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