--- linux/fs/proc/proc_misc.c.orig 2002-09-04 16:18:20.000000000 +0200 +++ linux/fs/proc/proc_misc.c 2002-09-04 17:58:34.000000000 +0200 @@ -518,8 +518,8 @@ extern char saved_command_line[]; int len; - len = snprintf(page, count, "%s\n", saved_command_line); - return proc_calc_metrics(page, start, off, count, eof, len); + len = snprintf(page, PAGE_SIZE, "%s\n", saved_command_line); + return proc_calc_metrics(page, start, off, count, eof, len > PAGE_SIZE ? PAGE_SIZE : len); } #ifdef CONFIG_SGI_DS1286