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:
parent
ad104f9164
commit
7ac377c750
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue