[rtems-libbsd commit] mcast01: Fix write to read-only string
Sebastian Huber
sebh at rtems.org
Tue Oct 27 05:20:28 UTC 2020
Module: rtems-libbsd
Branch: 6-freebsd-12
Commit: e58e5497282e8e55149de1c8235218f8ce28b56c
Changeset: http://git.rtems.org/rtems-libbsd/commit/?id=e58e5497282e8e55149de1c8235218f8ce28b56c
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Thu Sep 17 09:18:40 2020 +0200
mcast01: Fix write to read-only string
---
testsuite/mcast01/test_main.c | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/testsuite/mcast01/test_main.c b/testsuite/mcast01/test_main.c
index 6051971..ad6c45b 100644
--- a/testsuite/mcast01/test_main.c
+++ b/testsuite/mcast01/test_main.c
@@ -78,14 +78,15 @@ typedef struct {
} iface_binding;
static void
-set_mcast_route(const char *iface_name)
+set_mcast_route(char *iface_name)
{
+ static char net[] = "224.0.0.0/4";
int exit_code;
char *route[] = {
"route",
"add",
"-net",
- "224.0.0.0/4",
+ net,
"-iface",
iface_name,
NULL
More information about the vc
mailing list