From 7ac377c7507f8ab0ca28ef7836bd30e904c40a51 Mon Sep 17 00:00:00 2001 From: em Date: Fri, 30 Nov 1984 00:16:29 +0000 Subject: [PATCH] The routine salloc crashed on a 2/4 system. Malloc was nor declared as "char *", but by default as int. --- lang/basic/src.old/util.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lang/basic/src.old/util.c b/lang/basic/src.old/util.c index 719031843..56851c4e0 100644 --- a/lang/basic/src.old/util.c +++ b/lang/basic/src.old/util.c @@ -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); }