From 838c4f4376bfaa5524f107efa397452556bee033 Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Mon, 7 Sep 1998 03:23:56 +0000 Subject: make work on pmax --- lib/libc/gen/nlist.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'lib/libc/gen') diff --git a/lib/libc/gen/nlist.c b/lib/libc/gen/nlist.c index 86ae940c45d..a44f82af6c8 100644 --- a/lib/libc/gen/nlist.c +++ b/lib/libc/gen/nlist.c @@ -32,7 +32,7 @@ */ #if defined(LIBC_SCCS) && !defined(lint) -static char rcsid[] = "$OpenBSD: nlist.c,v 1.28 1998/09/05 16:30:07 millert Exp $"; +static char rcsid[] = "$OpenBSD: nlist.c,v 1.29 1998/09/07 03:23:55 millert Exp $"; #endif /* LIBC_SCCS and not lint */ #include @@ -205,7 +205,11 @@ __ecoff_fdnlist(fd, list) /* Read in the string table. */ if (Seek(fd, symhdr.cbSsExtOffset, SEEK_SET) == -1) BAD; +#ifdef alpha strsize = symhdr.estrMax; +#else + strsize = symhdr.sh_estrmax; +#endif if (!(strtab = (char *)malloc(strsize))) BAD; if (Read(fd, strtab, strsize) != strsize) -- cgit v1.2.3