From: Vladimir 'phcoder' Serbinenko Date: Mon, 20 Sep 2010 17:14:29 +0000 (+0200) Subject: * grub-core/kern/emu/misc.c (asprintf): Use vsnprintf instead of X-Git-Tag: 1.99~454 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=899d8af498bcfe987c59733b3d530011e4ea49e9;p=thirdparty%2Fgrub.git * grub-core/kern/emu/misc.c (asprintf): Use vsnprintf instead of vsprintf. --- diff --git a/ChangeLog b/ChangeLog index ae98382fa..c2239c5ea 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2010-09-20 Vladimir Serbinenko + + * grub-core/kern/emu/misc.c (asprintf): Use vsnprintf instead of + vsprintf. + 2010-09-20 Colin Watson * grub-core/commands/efi/lsefimmap.c: Correct header. diff --git a/grub-core/kern/emu/misc.c b/grub-core/kern/emu/misc.c index 4630d335d..d8db3be9d 100644 --- a/grub-core/kern/emu/misc.c +++ b/grub-core/kern/emu/misc.c @@ -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