projects
/
ghc-hetmet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
43048e0
)
allocate enough room for the longer filename (addendum to #4512)
author
Simon Marlow
<marlowsd@gmail.com>
Fri, 10 Dec 2010 09:39:06 +0000
(09:39 +0000)
committer
Simon Marlow
<marlowsd@gmail.com>
Fri, 10 Dec 2010 09:39:06 +0000
(09:39 +0000)
rts/eventlog/EventLog.c
patch
|
blob
|
history
diff --git
a/rts/eventlog/EventLog.c
b/rts/eventlog/EventLog.c
index
71b3484
..
fec34b9
100644
(file)
--- a/
rts/eventlog/EventLog.c
+++ b/
rts/eventlog/EventLog.c
@@
-174,7
+174,9
@@
initEventLogging(void)
StgWord8 t, c;
nat n_caps;
- event_log_filename = stgMallocBytes(strlen(prog_name) + 10,
+ event_log_filename = stgMallocBytes(strlen(prog_name)
+ + 10 /* .%d */
+ + 10 /* .eventlog */,
"initEventLogging");
if (sizeof(EventDesc) / sizeof(char*) != NUM_EVENT_TAGS) {