[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <51398183.5090800@asianux.com>
Date: Fri, 08 Mar 2013 14:13:23 +0800
From: Chen Gang <gang.chen@...anux.com>
To: David Miller <davem@...emloft.net>
CC: bhutchings@...arflare.com, David.Laight@...LAB.COM,
venkat.x.venkatsubra@...cle.com, rds-devel@....oracle.com,
netdev@...r.kernel.org
Subject: Re: [PATCH] net/rds: zero last byte for strncpy
于 2013年03月08日 13:36, David Miller 写道:
> From: Chen Gang <gang.chen@...anux.com>
> Date: Fri, 08 Mar 2013 11:19:32 +0800
>
>>
>> for NUL terminated string, need be always sure '\0' in the end.
>>
>> additional info:
>> strncpy will pads with zeroes to the end of the given buffer.
>> should initialise every bit of memory that is going to be copied to userland
>>
>>
>> Signed-off-by: Chen Gang <gang.chen@...anux.com>
>> Signed-off-by: Ben Hutchings <bhutchings@...arflare.com>
>
> Applied.
>
>
thanks.
--
Chen Gang
Asianux Corporation
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists