From: Steven Miao Date: Wed, 1 Jun 2011 07:52:41 +0000 (+0800) Subject: Blackfin: strncpy: fix handling of zero lengths X-Git-Tag: v3.0-rc2~9^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5ff6197f828d5ea051b3abf77cb61f8a34480e8d;p=pandora-kernel.git Blackfin: strncpy: fix handling of zero lengths The jump to 4f will cause the NUL padding loop to run at least one time, so if string length is zero just jump to the end. Otherwise we wrongly write one NUL byte when size==0. Signed-off-by: Steven Miao Signed-off-by: Mike Frysinger --- Reading git-diff-tree failed