Commit bcd4420d by Richard Stallman

(print_rtx): Use sizeof spaces - 1 to get the length of the spaces string.

From-SVN: r2733
parent 6fdb556e
......@@ -64,7 +64,7 @@ print_rtx (in_rtx)
if (sawclose)
{
fprintf (outfile, "\n%s",
(spaces + (sizeof spaces - indent * 2)));
(spaces + (sizeof spaces - 1 - indent * 2)));
sawclose = 0;
}
......@@ -132,7 +132,7 @@ print_rtx (in_rtx)
if (sawclose)
{
fprintf (outfile, "\n%s",
(spaces + (sizeof spaces - indent * 2)));
(spaces + (sizeof spaces - 1 - indent * 2)));
sawclose = 0;
}
fprintf (outfile, "[ ");
......@@ -149,7 +149,7 @@ print_rtx (in_rtx)
}
if (sawclose)
fprintf (outfile, "\n%s",
(spaces + (sizeof spaces - indent * 2)));
(spaces + (sizeof spaces - 1 - indent * 2)));
fprintf (outfile, "] ");
sawclose = 1;
......
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