Re: [GIT PULL] strscpy string copy function
From: Linus Torvalds
Date: Wed Jul 01 2015 - 12:11:53 EST
On Tue, Jun 30, 2015 at 11:01 AM, Chris Metcalf <cmetcalf@xxxxxxxxxx> wrote:
> Linus,
>
> The discussion on this died down on LKML [1], so either (a) everybody loved
> it and
> it was obviously correct, or (b) everybody lost interest. I'm
> optimistically
> assuming (a), but willing to hear otherwise!
>
> [1] https://lwn.net/Articles/643140/
Ugh. I thought we agreed to not have the odd "make it zero-sized"
thing be the default.
Let's just make something that is a sane version of strncpy/strlcpy,
not introduce yet another "str*cpy with really odd semantics for the
corner case"
Linus
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/