* grub-core/kern/misc.c (grub_vprintf): Fix a bug on malloc failure.
This commit is contained in:
parent
1227c13390
commit
84beb0eeb9
2 changed files with 5 additions and 0 deletions
|
@ -1,3 +1,7 @@
|
|||
2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
|
||||
|
||||
* grub-core/kern/misc.c (grub_vprintf): Fix a bug on malloc failure.
|
||||
|
||||
2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
|
||||
|
||||
Fix PCI iterating on functions >= 4.
|
||||
|
|
|
@ -210,6 +210,7 @@ grub_vprintf (const char *fmt, va_list args)
|
|||
buf[PREALLOC_SIZE - 2] = '.';
|
||||
buf[PREALLOC_SIZE - 1] = '.';
|
||||
buf[PREALLOC_SIZE] = 0;
|
||||
curbuf = buf;
|
||||
}
|
||||
else
|
||||
s = grub_vsnprintf_real (curbuf, s, fmt, ap2);
|
||||
|
|
Loading…
Reference in a new issue