--- linux-2.4.22-CVS-orig/kernel/panic.c Thu Feb 5 02:25:14 2004 +++ linux-2.4.22-CVS-mod/kernel/panic.c Tue May 18 20:34:47 2004 @@ -59,7 +59,7 @@ bust_spinlocks(1); va_start(args, fmt); - vsprintf(buf, fmt, args); + vsnprintf(buf, sizeof(buf), fmt, args); va_end(args); printk(KERN_EMERG "Kernel panic: %s\n",buf); if (in_interrupt())