Commit bd814d97 by Richard Stallman

(main): Use strlen, not sizeof, for our_file_name.

From-SVN: r3617
parent 03407c75
......@@ -730,7 +730,7 @@ main (argc, argv)
last_file_name = getenv ("COLLECT_NAME");
p = (char *) xcalloc (sizeof (char *),
sizeof (our_file_name) + strlen ("COLLECT_NAME=") + 1);
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