* [2.5] cmdline_read_proc strangeness?
@ 2003-05-20 11:40 Oleg Drokin
0 siblings, 0 replies; only message in thread
From: Oleg Drokin @ 2003-05-20 11:40 UTC (permalink / raw)
To: linux-kernel
Hello!
There is a bit of strange code in fs/proc/proc_misc.c::cmdline_read_proc()
int len;
len = sprintf(page, "%s\n", saved_command_line);
len = strlen(page);
Why do we need the strlen() here? It looks like pure overhead to me.
Am I missing something obvious?
Bye,
Oleg
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2003-05-20 11:27 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-05-20 11:40 [2.5] cmdline_read_proc strangeness? Oleg Drokin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox