The routine salloc crashed on a 2/4 system.
authorem <none@none>
Fri, 30 Nov 1984 00:16:29 +0000 (00:16 +0000)
committerem <none@none>
Fri, 30 Nov 1984 00:16:29 +0000 (00:16 +0000)
Malloc was nor declared as "char *", but by default as int.

lang/basic/src.old/util.c

index 7190318..56851c4 100644 (file)
@@ -64,7 +64,8 @@ char *salloc(length)
 int length;
 {              
        char *s,*c;
-       s=c= (char *) malloc(length);
+       extern char *malloc() ;
+       s=c= malloc(length);
        while(length-->0)*c++ =0;
        return(s);
 }