* grub-core/kern/emu/misc.c (asprintf): Use vsnprintf instead of

vsprintf.
This commit is contained in:
Vladimir 'phcoder' Serbinenko 2010-09-20 19:14:29 +02:00
parent 40901acd76
commit 899d8af498
2 changed files with 6 additions and 1 deletions

View file

@ -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>
* grub-core/commands/efi/lsefimmap.c: Correct header.

View file

@ -161,7 +161,7 @@ vasprintf (char **buf, const char *fmt, va_list ap)
/* Should be large enough. */
*buf = xmalloc (512);
return vsprintf (*buf, fmt, ap);
return vsnprintf (*buf, 512, fmt, ap);
}
#endif