X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=tun.c;fp=tun.c;h=5f9aa98d1051c5ae4d43ba32e6aa1768fa356447;hb=c1d2109aeff13960693be57a3b16026b7d5a9708;hp=d899f0c6d006219573fc60ef6e3f43943e4ba032;hpb=b1a0f651d803e1c1ff50f559b50de5c2dd6236d4;p=secnet.git 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) {