mcast01: Fix write to read-only string

This commit is contained in:
Sebastian Huber 2020-09-17 09:18:40 +02:00
parent c99a1ab00e
commit e58e549728

View File

@ -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