aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--android/main.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/android/main.c b/android/main.c
index 6f5fca4..6fcc4eb 100644
--- a/android/main.c
+++ b/android/main.c
@@ -2276,16 +2276,17 @@ int main(int argc, char **argv)
if (opts->shared_net_id) {
unsigned int shared_net_id = atoi(opts->shared_net_id);
char nic[37];
- args[n++] = "-net";
- snprintf(nic, 37, "nic,vlan=1,macaddr=52:54:00:12:34:%02x", shared_net_id);
- args[n++] = strdup(nic);
- args[n++] = "-net";
- args[n++] = "socket,vlan=1,mcast=230.0.0.10:1234";
args[n++] = "-net";
args[n++] = "nic,vlan=0";
args[n++] = "-net";
args[n++] = "user,vlan=0";
+
+ args[n++] = "-net";
+ snprintf(nic, sizeof nic, "nic,vlan=1,macaddr=52:54:00:12:34:%02x", shared_net_id);
+ args[n++] = strdup(nic);
+ args[n++] = "-net";
+ args[n++] = "socket,vlan=1,mcast=230.0.0.10:1234";
}
while(argc-- > 0) {