Fix warning in kern/misc.c

This commit is contained in:
Vladimir 'phcoder' Serbinenko 2009-12-30 14:24:10 +01:00
parent acea847040
commit 11c22894af

View file

@ -630,7 +630,7 @@ grub_lltoa (char *str, int c, unsigned long long n)
} }
static int static int
grub_vsnprintf_real (char *str, grub_size_t n, const char *fmt, va_list args) grub_vsnprintf_real (char *str, grub_size_t max_len, const char *fmt, va_list args)
{ {
char c; char c;
grub_size_t count = 0; grub_size_t count = 0;
@ -642,7 +642,7 @@ grub_vsnprintf_real (char *str, grub_size_t n, const char *fmt, va_list args)
{ {
if (str) if (str)
{ {
if (count < n) if (count < max_len)
*str++ = ch; *str++ = ch;
} }
else else