head 1.1; access; symbols; locks; strict; comment @# @; 1.1 date 2008.08.28.10.18.38; author rse; state Exp; branches; next ; commitid Hn5xkmsliqUsAxgt; desc @@ 1.1 log @apply patch from FreeBSD ports @ text @Index: output/outelf32.c --- output/outelf32.c.orig 2008-06-17 06:31:16 +0200 +++ output/outelf32.c 2008-08-28 12:15:31 +0200 @@@@ -1781,7 +1781,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); /* this is the stab for the main source file */ WRITE_STAB(sptr, fileidx[mainfileindex], N_SO, 0, 0, 0); Index: output/outelf64.c --- output/outelf64.c.orig 2008-06-17 06:31:16 +0200 +++ output/outelf64.c 2008-08-28 12:15:31 +0200 @@@@ -1796,7 +1796,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); /* this is the stab for the main source file */ WRITE_STAB(sptr, fileidx[mainfileindex], N_SO, 0, 0, 0); @