projects
/
powerpc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
[PATCH] do_task_stat(): don't take tty_mutex
[powerpc.git]
/
fs
/
proc
/
proc_misc.c
diff --git
a/fs/proc/proc_misc.c
b/fs/proc/proc_misc.c
index
51815ce
..
9397ff6
100644
(file)
--- a/
fs/proc/proc_misc.c
+++ b/
fs/proc/proc_misc.c
@@
-252,8
+252,8
@@
static int version_read_proc(char *page, char **start, off_t off,
{
int len;
- strcpy(page, linux_banner);
-
len = strlen(page
);
+ len = sprintf(page, linux_banner,
+
utsname()->release, utsname()->version
);
return proc_calc_metrics(page, start, off, count, eof, len);
}