* grub-core/kern/emu/misc.c (asprintf): Use vsnprintf instead of
vsprintf.
This commit is contained in:
parent
40901acd76
commit
899d8af498
2 changed files with 6 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
|
||||||
|
|
||||||
|
* grub-core/kern/emu/misc.c (asprintf): Use vsnprintf instead of
|
||||||
|
vsprintf.
|
||||||
|
|
||||||
2010-09-20 Colin Watson <cjwatson@ubuntu.com>
|
2010-09-20 Colin Watson <cjwatson@ubuntu.com>
|
||||||
|
|
||||||
* grub-core/commands/efi/lsefimmap.c: Correct header.
|
* grub-core/commands/efi/lsefimmap.c: Correct header.
|
||||||
|
|
|
@ -161,7 +161,7 @@ vasprintf (char **buf, const char *fmt, va_list ap)
|
||||||
/* Should be large enough. */
|
/* Should be large enough. */
|
||||||
*buf = xmalloc (512);
|
*buf = xmalloc (512);
|
||||||
|
|
||||||
return vsprintf (*buf, fmt, ap);
|
return vsnprintf (*buf, 512, fmt, ap);
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue