From: Oleg Drokin <green@namesys.com>
To: linux-kernel@vger.kernel.org
Subject: [2.5] cmdline_read_proc strangeness?
Date: Tue, 20 May 2003 15:40:10 +0400 [thread overview]
Message-ID: <20030520114010.GA27425@namesys.com> (raw)
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
reply other threads:[~2003-05-20 11:27 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20030520114010.GA27425@namesys.com \
--to=green@namesys.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.