Commit da6d85c0 by Richard Kenner

(choose_temp_base): Correct size allocated for temp_filename.

From-SVN: r5604
parent a8b74f42
......@@ -1393,7 +1393,7 @@ choose_temp_base ()
base = "./";
len = strlen (base);
temp_filename = xmalloc (len + sizeof("/ccXXXXXX"));
temp_filename = xmalloc (len + sizeof("/ccXXXXXX") + 1);
strcpy (temp_filename, base);
if (len > 0 && temp_filename[len-1] != '/')
temp_filename[len++] = '/';
......
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