Messages in this thread | | | Date | Wed, 1 Jul 2015 09:11:42 -0700 | Subject | Re: [GIT PULL] strscpy string copy function | From | Linus Torvalds <> |
| |
On Tue, Jun 30, 2015 at 11:01 AM, Chris Metcalf <cmetcalf@ezchip.com> 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
| |