rssnsj / minivtun

A fast, secure and reliable VPN service based on non-standard protocol
GNU General Public License v3.0
246 stars 102 forks source link

gcc8 溢出警告 #33

Closed lshw closed 4 years ago

lshw commented 4 years ago

gcc8编译时,报溢出警告,放到200字节不再报警:

library.c:340:2: note: ‘sprintf’ output 28 or more bytes (assuming 130) into a destination of size 128 sprintf(cmd, "%s route add %s/%d dev %s metric %d%s", af == AF_INET6 ? "ip -6" : "ip", net, prefix, ifname, metric, ip_sfx);

rssnsj commented 4 years ago

谢谢,已合并。