mirror of
https://git.rtems.org/rtems-libbsd/
synced 2025-05-13 15:09:33 +08:00
mcast01: Fix write to read-only string
This commit is contained in:
parent
c99a1ab00e
commit
e58e549728
@ -78,14 +78,15 @@ typedef struct {
|
|||||||
} iface_binding;
|
} iface_binding;
|
||||||
|
|
||||||
static void
|
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;
|
int exit_code;
|
||||||
char *route[] = {
|
char *route[] = {
|
||||||
"route",
|
"route",
|
||||||
"add",
|
"add",
|
||||||
"-net",
|
"-net",
|
||||||
"224.0.0.0/4",
|
net,
|
||||||
"-iface",
|
"-iface",
|
||||||
iface_name,
|
iface_name,
|
||||||
NULL
|
NULL
|
||||||
|
Loading…
x
Reference in New Issue
Block a user