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

From-SVN: r2733
This commit is contained in:
Richard Stallman 1992-11-10 15:18:12 +00:00
parent 6fdb556ec0
commit bcd4420d23

View File

@ -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;