(print_rtx): Use sizeof spaces - 1 to get the length of the spaces string.
authorRichard Stallman <rms@gnu.org>
Tue, 10 Nov 1992 15:18:12 +0000 (15:18 +0000)
committerRichard Stallman <rms@gnu.org>
Tue, 10 Nov 1992 15:18:12 +0000 (15:18 +0000)
From-SVN: r2733

gcc/print-rtl.c

index c77e61bae1ef2a16e8e2764f33d5a99e89716cb4..60e3ca929b366556dc2d9056a4ed39a54c368342 100644 (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;