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

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

No files matched your search

+1 -1
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