* grub-core/kern/misc.c (grub_vsnprintf_real): Fix fmt2 parsing.
This commit is contained in:
parent
e59b7857f8
commit
fd261d7300
2 changed files with 10 additions and 0 deletions
|
@ -1,3 +1,7 @@
|
|||
2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
|
||||
|
||||
* grub-core/kern/misc.c (grub_vsnprintf_real): Fix fmt2 parsing.
|
||||
|
||||
2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
|
||||
|
||||
* grub-core/commands/videotest.c (grub_cmd_videotest): Check that
|
||||
|
|
|
@ -749,6 +749,12 @@ grub_vsnprintf_real (char *str, grub_size_t max_len, const char *fmt0, va_list a
|
|||
while (*fmt && grub_isdigit (*fmt))
|
||||
fmt++;
|
||||
|
||||
if (*fmt && *fmt =='.')
|
||||
fmt++;
|
||||
|
||||
while (*fmt && grub_isdigit (*fmt))
|
||||
fmt++;
|
||||
|
||||
p = fmt;
|
||||
|
||||
if (*fmt && *fmt == '$')
|
||||
|
|
Loading…
Reference in a new issue