public
/
ack.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9463823
)
Removed static buffer in gen_idf
author
ceriel
<none@none>
Thu, 22 Oct 1992 16:00:05 +0000
(16:00 +0000)
committer
ceriel
<none@none>
Thu, 22 Oct 1992 16:00:05 +0000
(16:00 +0000)
lang/cem/cemcom/idf.c
patch
|
blob
|
history
diff --git
a/lang/cem/cemcom/idf.c
b/lang/cem/cemcom/idf.c
index
90c8fb1
..
b5bc6e7
100644
(file)
--- a/
lang/cem/cemcom/idf.c
+++ b/
lang/cem/cemcom/idf.c
@@
-151,11
+151,14
@@
gen_idf()
anonymous name.
*/
static int name_cnt;
- char buff[100];
+ struct idf *id;
+ char *s = Malloc(strlen(dot.tk_file)+50);
- sprint(
buff
, "#%d in %s, line %u",
+ sprint(
s
, "#%d in %s, line %u",
++name_cnt, dot.tk_file, dot.tk_line);
- return str2idf(buff);
+ id = str2idf(s);
+ free(s);
+ return id;
}
int