mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-20 22:48:22 +00:00
* grub-core/kern/misc.c (grub_vprintf): Fix a bug on malloc failure.
This commit is contained in:
1 parent
1227c13390
commit
84beb0eeb9
2 files changed
+5
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user