X-Git-Url: https://git.distorted.org.uk/~mdw/secnet/blobdiff_plain/90a39563035b70196da9c5bdc7c17a63b64449b0..29672515:/tun.c?ds=sidebyside diff --git a/tun.c b/tun.c index d899f0c..5f9aa98 100644 --- a/tun.c +++ b/tun.c @@ -332,7 +332,7 @@ static void tun_phase_hook(void *sst, uint32_t newphase) hostaddr=ipaddr_to_string(st->local_address); secnetaddr=ipaddr_to_string(st->nl.secnet_address); - snprintf(mtu,6,"%d",st->nl.mtu); + snprintf(mtu,sizeof(mtu),"%d",st->nl.mtu); mtu[5]=0; switch (st->ifconfig_type) {