Menu

#68 host.c:92: off by one error ?

open
nobody
None
5
2015-02-27
2015-02-27
dcb
No

[host.c:92]: (error) Width 32 given in format string (no. 1) is larger than destination buffer 'iface[32]', use %31s to prevent overflowing it.

n = sscanf(buf, "%32s %lx %*x %*x %*x %*x %*x", iface, &if_addr);

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.