From bcd4420d2323967dc429e67e2ece24d806e92714 Mon Sep 17 00:00:00 2001 From: Richard Stallman Date: Tue, 10 Nov 1992 15:18:12 +0000 Subject: [PATCH] (print_rtx): Use sizeof spaces - 1 to get the length of the spaces string. From-SVN: r2733 --- gcc/print-rtl.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gcc/print-rtl.c b/gcc/print-rtl.c index c77e61bae1e..60e3ca929b3 100644 --- a/gcc/print-rtl.c +++ b/gcc/print-rtl.c @@ -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; -- 2.30.2