From: Chen Gang Date: Thu, 7 Mar 2013 17:19:32 +0000 (+0000) Subject: net/rds: zero last byte for strncpy X-Git-Tag: v3.9-rc3~36^2~10 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2e85d67690cf3ea3f074a6e872f675226883fe7f;p=pandora-kernel.git net/rds: zero last byte for strncpy 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 Signed-off-by: Ben Hutchings Signed-off-by: David S. Miller --- Reading git-diff-tree failed