return value sometimes was wrong
authorceriel <none@none>
Tue, 6 Sep 1988 15:34:47 +0000 (15:34 +0000)
committerceriel <none@none>
Tue, 6 Sep 1988 15:34:47 +0000 (15:34 +0000)
lang/m2/libm2/Arguments.c

index 4812147..2777303 100644 (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++;
        }