Commit 0d8c1ccd by Richard Stallman

(main): Allocate COLLECT_NAME string with xmalloc.

From-SVN: r4902
parent 328d0797
......@@ -736,8 +736,7 @@ main (argc, argv)
last_file_name = getenv ("COLLECT_NAME");
p = (char *) xcalloc (sizeof (char *),
strlen (our_file_name) + strlen ("COLLECT_NAME=") + 1);
p = (char *) xmalloc (strlen (our_file_name) + strlen ("COLLECT_NAME=") + 1);
sprintf (p, "COLLECT_NAME=%s", our_file_name);
putenv (p);
......
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