Commit 732d9b8c by Mumit Khan Committed by Jeff Law

* g++spec.c (lang_specific_driver): Add room for NULL in arglist.

From-SVN: r28812
parent bbd0d54a
Mon Aug 23 22:17:20 1999 Mumit Khan <khan@xraylith.wisc.edu>
* g++spec.c (lang_specific_driver): Add room for NULL in arglist.
1999-08-23 Jason Merrill <jason@yorick.cygnus.com>
* exception.cc (__cplus_type_matcher): Call __throw_type_match_rtti_2.
......
......@@ -197,7 +197,8 @@ lang_specific_driver (fn, in_argc, in_argv, in_added_libraries)
return;
}
num_args = argc + added + need_math;
/* Make sure to have room for the trailing NULL argument. */
num_args = argc + added + need_math + 1;
arglist = (char **) xmalloc (num_args * sizeof (char *));
/* NOTE: We start at 1 now, not 0. */
......
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