Fix bug that put the date of the next file in the footer on the last page
authorDonn Seeley <donn@ucbvax.Berkeley.EDU>
Fri, 18 Jul 1986 05:52:19 +0000 (21:52 -0800)
committerDonn Seeley <donn@ucbvax.Berkeley.EDU>
Fri, 18 Jul 1986 05:52:19 +0000 (21:52 -0800)
of the current file.

SCCS-vsn: usr.bin/vgrind/vfontedpr.c 5.2

usr/src/usr.bin/vgrind/vfontedpr.c

index 39aa685..9a4f75e 100644 (file)
@@ -5,7 +5,7 @@
  */
 
 #ifndef lint
  */
 
 #ifndef lint
-static char sccsid[] = "@(#)vfontedpr.c        5.1 (Berkeley) %G%";
+static char sccsid[] = "@(#)vfontedpr.c        5.2 (Berkeley) %G%";
 #endif not lint
 
 #include <ctype.h>
 #endif not lint
 
 #include <ctype.h>
@@ -264,11 +264,6 @@ main(argc, argv)
        ps("'-F\n");
        if (!filter) {
            printf(".ds =F %s\n", fname);
        ps("'-F\n");
        if (!filter) {
            printf(".ds =F %s\n", fname);
-           fstat(fileno(stdin), &stbuf);
-           cp = ctime(&stbuf.st_mtime);
-           cp[16] = '\0';
-           cp[24] = '\0';
-           printf(".ds =M %s %s\n", cp+4, cp+20);
            ps("'wh 0 vH\n");
            ps("'wh -1i vF\n");
        }
            ps("'wh 0 vH\n");
            ps("'wh -1i vF\n");
        }
@@ -277,6 +272,13 @@ main(argc, argv)
            printf(".()\n");
            printf(".bp\n");
        }
            printf(".()\n");
            printf(".bp\n");
        }
+       if (!filter) {
+           fstat(fileno(stdin), &stbuf);
+           cp = ctime(&stbuf.st_mtime);
+           cp[16] = '\0';
+           cp[24] = '\0';
+           printf(".ds =M %s %s\n", cp+4, cp+20);
+       }
 
        /*
         *      MAIN LOOP!!!
 
        /*
         *      MAIN LOOP!!!