]> git.proxmox.com Git - grub2.git/commitdiff
* grub-core/kern/emu/misc.c (asprintf): Use vsnprintf instead of
authorVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Mon, 20 Sep 2010 17:14:29 +0000 (19:14 +0200)
committerVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Mon, 20 Sep 2010 17:14:29 +0000 (19:14 +0200)
vsprintf.

ChangeLog
grub-core/kern/emu/misc.c

index ae98382fa43d2ad34831152065c8d3cda79c25e2..c2239c5eaceead41bdc628064b9083ae544dfbbd 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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.
index 4630d335d8463052fdd415831a0a3fef14dcc8da..d8db3be9def4c01b0473383e1f0b9166709b9d1d 100644 (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