public
/
ack.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ad104f9
)
The routine salloc crashed on a 2/4 system.
author
em
<none@none>
Fri, 30 Nov 1984 00:16:29 +0000
(
00:16
+0000)
committer
em
<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
patch
|
blob
|
history
diff --git
a/lang/basic/src.old/util.c
b/lang/basic/src.old/util.c
index
7190318
..
56851c4
100644
(file)
--- 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);
}