The routine salloc crashed on a 2/4 system.

Malloc was nor declared as "char *", but by default as int.
This commit is contained in:
em 1984-11-30 00:16:29 +00:00
parent ad104f9164
commit 7ac377c750

View 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);
}