summaryrefslogtreecommitdiff
path: root/lib/libc/gen
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>1998-09-07 03:23:56 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>1998-09-07 03:23:56 +0000
commit838c4f4376bfaa5524f107efa397452556bee033 (patch)
tree220a508476dccdde4f45f5d2fd4b737f8210369a /lib/libc/gen
parent2571172d2385736cb81f0035c86e306890ae7570 (diff)
make work on pmax
Diffstat (limited to 'lib/libc/gen')
-rw-r--r--lib/libc/gen/nlist.c6
1 files changed, 5 insertions, 1 deletions
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 <sys/types.h>
@@ -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)