Commit a201afd3 authored by Simon Marlow's avatar Simon Marlow

allocate enough room for the longer filename (addendum to #4512)

parent 43048e07
......@@ -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) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment