return value sometimes was wrong

This commit is contained in:
ceriel 1988-09-06 15:34:47 +00:00
parent 575d4f5223
commit 612ddc8a4e

View file

@ -30,7 +30,7 @@ scopy(src, dst, max)
{
register unsigned int i = 0;
while (*src && i < max) {
while (*src && i <= max) {
i++;
*dst++ = *src++;
}