mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 08:43:19 -04:00
Allow format strings containing "%%" to be reused.
PR: 39116 Submitted by: Egil Brendsdal <egilb@ife.no> MFC after: 1 week
This commit is contained in:
parent
37fd459046
commit
5f19035b04
1 changed files with 2 additions and 2 deletions
|
|
@ -173,8 +173,8 @@ next: for (start = fmt;; ++fmt) {
|
|||
if (*fmt == '%') {
|
||||
if (*++fmt != '%')
|
||||
break;
|
||||
*fmt++ = '\0';
|
||||
(void)printf("%s", start);
|
||||
(void)printf("%.*s", (int)(fmt - start), start);
|
||||
fmt++;
|
||||
goto next;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue