return value sometimes was wrong
This commit is contained in:
parent
575d4f5223
commit
612ddc8a4e
|
@ -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…
Reference in a new issue