Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754813AbbGAQLw (ORCPT ); Wed, 1 Jul 2015 12:11:52 -0400 Received: from mail-ig0-f180.google.com ([209.85.213.180]:36611 "EHLO mail-ig0-f180.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754627AbbGAQLn (ORCPT ); Wed, 1 Jul 2015 12:11:43 -0400 MIME-Version: 1.0 In-Reply-To: <5592D96C.9000406@ezchip.com> References: <5592D96C.9000406@ezchip.com> Date: Wed, 1 Jul 2015 09:11:42 -0700 X-Google-Sender-Auth: 2WZDaR-RAPDi8wUDsB2DXZMDv-0 Message-ID: Subject: Re: [GIT PULL] strscpy string copy function From: Linus Torvalds To: Chris Metcalf Cc: open list Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 852 Lines: 24 On Tue, Jun 30, 2015 at 11:01 AM, Chris Metcalf 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@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/