From: Paul Mackerras <paulus@samba.org>
To: Rusty Russell <rusty@rustcorp.com.au>
Cc: linux-kernel@vger.kernel.org
Subject: Re: [PATCH] TRIVIAL 2.5.8: clean up fs_exec.c
Date: Tue, 23 Apr 2002 10:06:13 +1000 (EST) [thread overview]
Message-ID: <15556.42357.87448.366402@argo.ozlabs.ibm.com> (raw)
In-Reply-To: <E16zUnQ-00016q-00@wagner.rustcorp.com.au>
Rusty Russell writes:
> - memcpy(corename,"core.", 5);
> - corename[4] = '\0';
> + memcpy(corename,"core", 5); /* include trailing \0 */
What's wrong with strcpy? gcc3 will even turn it into a memcpy for
you. :)
Paul.
prev parent reply other threads:[~2002-04-23 8:02 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-04-22 3:47 Rusty Russell
2002-04-23 0:06 ` Paul Mackerras [this message]
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=15556.42357.87448.366402@argo.ozlabs.ibm.com \
--to=paulus@samba.org \
--cc=linux-kernel@vger.kernel.org \
--cc=rusty@rustcorp.com.au \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®