Attempt to fix 64-bitness error in ashow. Deprecate the structure format macros in h/out.h because they make no sense on 64-bit platforms.

This commit is contained in:
David Given
2013-05-29 14:48:51 +01:00
parent e0c121d6e6
commit 6fff2d45fe
2 changed files with 8 additions and 2 deletions

View File

@@ -70,7 +70,7 @@ show(headp)
/*
* We get all struct outname's and the strings in core first.
*/
name = (struct outname *) myalloc(headp->oh_nname * SZ_NAME);
name = (struct outname *) myalloc(headp->oh_nname * sizeof(struct outname));
string = myalloc((unsigned) headp->oh_nchar);
rd_name(name, headp->oh_nname);
for (np = &name[0]; np < &name[headp->oh_nname]; np++) {