mirror of
https://github.com/freebsd/freebsd-src
synced 2024-07-21 18:27:22 +00:00
ktrdump: properly parse %% in the format string
Discovered by: 27ca37acb7
This commit is contained in:
parent
f1d5e2c862
commit
dcb724b5a7
|
@ -298,6 +298,8 @@ main(int ac, char **av)
|
|||
continue;
|
||||
next: if ((c = *p++) == '\0')
|
||||
break;
|
||||
if (c == '%')
|
||||
continue;
|
||||
if (parm == KTR_PARMS)
|
||||
errx(1, "too many parameters in \"%s\"", desc);
|
||||
switch (c) {
|
||||
|
|
Loading…
Reference in a new issue