aboutsummaryrefslogtreecommitdiffstats
path: root/virt
diff options
context:
space:
mode:
authorSteven Miao <realmz6@gmail.com>2011-06-01 15:52:41 +0800
committerMike Frysinger <vapier@gentoo.org>2011-06-03 11:05:36 -0400
commit5ff6197f828d5ea051b3abf77cb61f8a34480e8d (patch)
tree4d40c726ed8b09f1cd184f972641edc99a8c07b8 /virt
parent1fa7b6a29c61358cc2ca6f64cef4aa0e1a7ca74c (diff)
downloadkernel_samsung_tuna-5ff6197f828d5ea051b3abf77cb61f8a34480e8d.zip
kernel_samsung_tuna-5ff6197f828d5ea051b3abf77cb61f8a34480e8d.tar.gz
kernel_samsung_tuna-5ff6197f828d5ea051b3abf77cb61f8a34480e8d.tar.bz2
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 <realmz6@gmail.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'virt')
0 files changed, 0 insertions, 0 deletions