From: Andres Salomon <dilinger@debian.org>
To: linux-kernel@vger.kernel.org
Subject: Re: [PATCH] create a kstrdup library function
Date: Mon, 04 Apr 2005 17:49:13 -0400 [thread overview]
Message-ID: <pan.2005.04.04.21.49.11.94781@debian.org> (raw)
In-Reply-To: 42519911.508@grupopie.com
On Mon, 04 Apr 2005 20:44:17 +0100, Paulo Marques wrote:
>
> Hi,
>
> This patch creates a new kstrdup library function and changes the
> "local" implementations in several places to use this function.
>
> This is just a cleanup to allow reusing the strdup code, and to prevent
> bugs in future duplications of strdup.
>
Just a minor nit; I would use a size_t in kstrdup(),
instead of an int, for the len. All other functions dealing w/ the len
(strlen, kmalloc, memcpy) expect a size_t.
next prev parent reply other threads:[~2005-04-04 23:06 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-04-04 19:44 [PATCH] create a kstrdup library function Paulo Marques
2005-04-04 21:15 ` Adrian Bunk
2005-04-05 11:17 ` Paulo Marques
2005-04-05 11:55 ` Paulo Marques
2005-04-04 21:49 ` Andres Salomon [this message]
2005-04-13 11:23 ` Paulo Marques
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=pan.2005.04.04.21.49.11.94781@debian.org \
--to=dilinger@debian.org \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox