alistair23-linux/arch/blackfin/lib
Steven Miao 5ff6197f82 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>
2011-06-03 11:05:36 -04:00
..
ashldi3.c
ashrdi3.c
divsi3.S
gcclib.h
ins.S Fix common misspellings 2011-03-31 11:26:23 -03:00
lshrdi3.c
Makefile
memchr.S
memcmp.S
memcpy.S
memmove.S Fix common misspellings 2011-03-31 11:26:23 -03:00
memset.S Blackfin: optimize strncpy a bit 2010-05-22 14:19:11 -04:00
modsi3.S
muldi3.S
outs.S Blackfin: outs[lwb]: make sure count is greater than 0 2011-03-04 01:26:55 -05:00
smulsi3_highpart.S
strcmp.S
strcpy.S
strncmp.S
strncpy.S Blackfin: strncpy: fix handling of zero lengths 2011-06-03 11:05:36 -04:00
udivsi3.S
umodsi3.S
umulsi3_highpart.S