increase -Werror resilience
for bin/, commands/, libexec/, sbin/, test/, usr.bin/ and usr.sbin/. Change-Id: I8fa12c3cd86865311cef71b7faa7cf4fa785174f
This commit is contained in:
committed by
Gerrit Code Review
parent
5c584cedf8
commit
3161c603a6
@@ -393,7 +393,7 @@ numhex(u_char *pos, const u_char *bufend, u_char *line, u_char *lineend,
|
||||
int64_t n = 0;
|
||||
int l;
|
||||
SKIP_BLANKS(line);
|
||||
sscanf((const char *) pos, "%lx", &n);
|
||||
sscanf((const char *) pos, "%llx", &n);
|
||||
l = snprintf((char *)buf, sizeof(buf), "%lld", n);
|
||||
return number(pos, bufend, buf, buf + l, flag);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user