summaryrefslogtreecommitdiff
path: root/devel/nasm/files/patch-output::outelf.c
blob: 58a9e0fe8ffdc93c431873d0452a304d62d2d2e9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
$FreeBSD$

--- output/outelf.c.orig
+++ output/outelf.c
@@ -1431,7 +1431,7 @@
        the source-file, the n_desc field should be set to the number
        of remaining stabs
      */
-    WRITE_STAB(sptr, fileidx[0], 0, 0, 0, strlen(allfiles[0] + 12));
+    WRITE_STAB(sptr, fileidx[0], 0, 0, 0, stabstrlen);
 
     ptr = stabslines;
     numstabs = 0;