Commit 1a78ef4c by Uros Bizjak Committed by Uros Bizjak

misc.c (internal_error_function): Use xasprintf instead of unchecked asprintf.

	* gcc-interface/misc.c (internal_error_function): Use xasprintf instead
	of unchecked asprintf.

From-SVN: r219175
parent f034f370
2015-01-04 Uros Bizjak <ubizjak@gmail.com>
* gcc-interface/misc.c (internal_error_function): Use xasprintf instead
of unchecked asprintf.
2014-12-22 Eric Botcazou <ebotcazou@adacore.com>
* gcc-interface/trans.c (Attribute_to_gnu) <Attr_{Min,Max}>: If the
......
......@@ -326,9 +326,9 @@ internal_error_function (diagnostic_context *context,
xloc = expand_location (input_location);
if (context->show_column && xloc.column != 0)
asprintf (&loc, "%s:%d:%d", xloc.file, xloc.line, xloc.column);
loc = xasprintf ("%s:%d:%d", xloc.file, xloc.line, xloc.column);
else
asprintf (&loc, "%s:%d", xloc.file, xloc.line);
loc = xasprintf ("%s:%d", xloc.file, xloc.line);
temp_loc.Low_Bound = 1;
temp_loc.High_Bound = strlen (loc);
sp_loc.Bounds = &temp_loc;
......
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