mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-26 20:12:44 +00:00
ipf: correct size limit in snprintf
Reported by: GCC -Wsizeof-pointer-memaccess Reviewed by: zlei Differential Revision: https://reviews.freebsd.org/D45899
This commit is contained in:
parent
eaa3d34b62
commit
90818083d7
@ -449,7 +449,7 @@ buildipv6:
|
||||
oc = c;
|
||||
|
||||
if (prior == YY_NUMBER && c == ':') {
|
||||
snprintf(s, sizeof(s), "%d", priornum);
|
||||
snprintf(s, sizeof(ipv6buf), "%d", priornum);
|
||||
s += strlen(s);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user