changed "pc - 1" to "pc" in getsrcpos, the source module has no business
[unix-history] / usr / src / old / ld / ld.c
index 6dc2893..18a17d0 100644 (file)
@@ -1,4 +1,4 @@
-static char sccsid[] = "@(#)ld.c 4.6 %G%";
+static char sccsid[] = "@(#)ld.c 4.7 %G%";
 
 /*
  * ld - string table version for VAX
 
 /*
  * ld - string table version for VAX
@@ -514,7 +514,7 @@ delexit()
         */
        fstat(biofd, &stbuf);
        size = round(stbuf.st_size, BLKSIZE);
         */
        fstat(biofd, &stbuf);
        size = round(stbuf.st_size, BLKSIZE);
-       if (size > stbuf.st_size) {
+       if (!rflag && size > stbuf.st_size) {
                lseek(biofd, size - 1, 0);
                write(biofd, &c, 1);
        }
                lseek(biofd, size - 1, 0);
                write(biofd, &c, 1);
        }