mirror of
https://github.com/norohind/hans.git
synced 2025-04-23 09:20:27 +03:00
Fixed writing beyond array bounds
This commit is contained in:
parent
a4b81ef64d
commit
e6d7f4c043
6
CHANGES
6
CHANGES
@ -1,9 +1,11 @@
|
||||
* Fixed writing beyond array bounds
|
||||
|
||||
Release 0.4.3 (Mai 2013)
|
||||
-----------------
|
||||
------------------------
|
||||
* Fixed tunemu compiling issue
|
||||
|
||||
Release 0.4.2 (Mai 2013)
|
||||
-----------------
|
||||
------------------------
|
||||
* Fixed compilation issue on Linux
|
||||
* Changed the license of tunemu from GPL to BSD
|
||||
* Minor changes
|
||||
|
@ -41,7 +41,7 @@ Tun::Tun(const char *device, int mtu)
|
||||
if (device != NULL)
|
||||
{
|
||||
strncpy(this->device, device, VTUN_DEV_LEN);
|
||||
this->device[VTUN_DEV_LEN] = 0;
|
||||
this->device[VTUN_DEV_LEN-1] = 0;
|
||||
}
|
||||
else
|
||||
this->device[0] = 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user