Fixed possible buffer overflow (patch by Randy Sommerfeld).

This commit is contained in:
Volker Ruppert 2020-05-06 11:17:34 +00:00
parent a7325c3a40
commit f9da9f9249

View File

@ -176,7 +176,7 @@ bx_tuntap_pktmover_c::bx_tuntap_pktmover_c(const char *netif,
fd = open (filename, O_RDWR);
#endif
char intname[IFNAMSIZ];
char intname[MAXPATHLEN];
strcpy(intname,netif);
fd=tun_alloc(intname);
if (fd < 0) {