int guest_port);
extern const char *tftp_prefix;
-extern const char slirp_hostname[33];
+extern char slirp_hostname[33];
#ifdef __cplusplus
}
/* XXX: suppress those select globals */
fd_set *global_readfds, *global_writefds, *global_xfds;
-const char slirp_hostname[33];
+char slirp_hostname[33];
#ifdef _WIN32
#ifdef CONFIG_SLIRP
if (!strcmp(device, "user")) {
if (get_param_value(buf, sizeof(buf), "hostname", p)) {
- if (strlen(buf) > 32)
- buf[32] = 0;
- strcpy(slirp_hostname, buf);
+ pstrcpy(slirp_hostname, sizeof(slirp_hostname), buf);
}
ret = net_slirp_init(vlan);
} else