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
1 changed files with 2 additions and 1 deletions
|
@ -64,7 +64,8 @@ char *salloc(length)
|
||||||
int length;
|
int length;
|
||||||
{
|
{
|
||||||
char *s,*c;
|
char *s,*c;
|
||||||
s=c= (char *) malloc(length);
|
extern char *malloc() ;
|
||||||
|
s=c= malloc(length);
|
||||||
while(length-->0)*c++ =0;
|
while(length-->0)*c++ =0;
|
||||||
return(s);
|
return(s);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue