[PATCH] fix linux banner format string
[linux-2.6.git] / fs / proc / proc_misc.c
index dc3e580..b37ce33 100644 (file)
@@ -253,8 +253,10 @@ static int version_read_proc(char *page, char **start, off_t off,
 {
        int len;
 
-       len = sprintf(page, linux_banner,
-               utsname()->release, utsname()->version);
+       len = snprintf(page, PAGE_SIZE, linux_proc_banner,
+               utsname()->sysname,
+               utsname()->release,
+               utsname()->version);
        return proc_calc_metrics(page, start, off, count, eof, len);
 }