mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-21 06:49:35 +00:00
* grub-core/kern/misc.c (grub_vsnprintf_real): Handle %% properly.
* tests/printf_unit_test.c (printf_test): Add %% tests. Reported by: Paulo Flabiano Smorigo.
This commit is contained in:
1 parent
af3b06be14
commit
148f100768
3 files changed
+26
-1
No files matched your search
@@ -910,6 +910,12 @@ grub_vsnprintf_real (char *str, grub_size_t max_len, const char *fmt0, va_list a
|
||||
}
|
||||
}
|
||||
|
||||
if (c == '%')
|
||||
{
|
||||
write_char (c);
|
||||
continue;
|
||||
}
|
||||
|
||||
if (curn >= count_args)
|
||||
continue;
|
||||
|
||||
|
||||
Reference in new issue
Block a user