return value sometimes was wrong

This commit is contained in:
ceriel 1988-09-06 15:34:47 +00:00
parent f2546a2006
commit 871ef07410

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++;
}