return value sometimes was wrong
This commit is contained in:
parent
f2546a2006
commit
871ef07410
@ -30,7 +30,7 @@ scopy(src, dst, max)
|
||||
{
|
||||
register unsigned int i = 0;
|
||||
|
||||
while (*src && i < max) {
|
||||
while (*src && i <= max) {
|
||||
i++;
|
||||
*dst++ = *src++;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user