Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753111AbbH1WN1 (ORCPT ); Fri, 28 Aug 2015 18:13:27 -0400 Received: from mail-pa0-f44.google.com ([209.85.220.44]:34830 "EHLO mail-pa0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752993AbbH1WNZ (ORCPT ); Fri, 28 Aug 2015 18:13:25 -0400 Subject: Re: [PATCH v2 net-next 1/2] lib: introduce strncpy_from_unsafe() To: Steven Rostedt References: <1440791509-5450-1-git-send-email-ast@plumgrid.com> <1440791509-5450-2-git-send-email-ast@plumgrid.com> <20150828174813.23e6e78b@gandalf.local.home> <55E0DBE3.8010504@plumgrid.com> <20150828181141.6d974130@gandalf.local.home> Cc: "David S. Miller" , Ingo Molnar , Masami Hiramatsu , Wang Nan , He Kuang , Daniel Borkmann , Brendan Gregg , netdev@vger.kernel.org, linux-kernel@vger.kernel.org From: Alexei Starovoitov Message-ID: <55E0DD03.2000808@plumgrid.com> Date: Fri, 28 Aug 2015 15:13:23 -0700 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 MIME-Version: 1.0 In-Reply-To: <20150828181141.6d974130@gandalf.local.home> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 475 Lines: 11 On 8/28/15 3:11 PM, Steven Rostedt wrote: > I personally prefer counting the NUL. I've had issues in the past with > the strncpy_from_user() not counting it :-p agreed. will respin with comment fixed. thank you much for review! -- 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/