diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2020-09-17 09:18:40 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2020-10-27 06:20:41 +0100 |
commit | e98239fbe37539e2736321e1d84d73fb3eae194c (patch) | |
tree | 3a917fd3825ae124580540faf4ecfb7f71fe5db5 /testsuite | |
parent | powerpc/nexus: Add legacy PCI support to PowerPC Motorola Shared BSP family (diff) | |
download | rtems-libbsd-e98239fbe37539e2736321e1d84d73fb3eae194c.tar.bz2 |
mcast01: Fix write to read-only string
Diffstat (limited to 'testsuite')
-rw-r--r-- | testsuite/mcast01/test_main.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/testsuite/mcast01/test_main.c b/testsuite/mcast01/test_main.c index 60519719..ad6c45b7 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 |