=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/strip/Attic/strip.c,v retrieving revision 1.22 retrieving revision 1.23 diff -c -r1.22 -r1.23 *** src/usr.bin/strip/Attic/strip.c 2004/07/12 10:44:11 1.22 --- src/usr.bin/strip/Attic/strip.c 2004/10/09 20:36:05 1.23 *************** *** 1,4 **** ! /* $OpenBSD: strip.c,v 1.22 2004/07/12 10:44:11 miod Exp $ */ /* * Copyright (c) 1988 Regents of the University of California. --- 1,4 ---- ! /* $OpenBSD: strip.c,v 1.23 2004/10/09 20:36:05 mickey Exp $ */ /* * Copyright (c) 1988 Regents of the University of California. *************** *** 37,43 **** #ifndef lint /*static char sccsid[] = "from: @(#)strip.c 5.8 (Berkeley) 11/6/91";*/ ! static char rcsid[] = "$OpenBSD: strip.c,v 1.22 2004/07/12 10:44:11 miod Exp $"; #endif /* not lint */ #include --- 37,43 ---- #ifndef lint /*static char sccsid[] = "from: @(#)strip.c 5.8 (Berkeley) 11/6/91";*/ ! static char rcsid[] = "$OpenBSD: strip.c,v 1.23 2004/10/09 20:36:05 mickey Exp $"; #endif /* not lint */ #include *************** *** 254,260 **** * of the string table. */ strbase = (char *)ep + N_STROFF(*ep); ! allocsize = fix_long_order(*(u_long *)strbase, mid); if ((nstrbase = malloc((u_int) allocsize)) == NULL) { warnx("%s", strerror(ENOMEM)); goto end; --- 254,260 ---- * of the string table. */ strbase = (char *)ep + N_STROFF(*ep); ! allocsize = fix_32_order(*(u_long *)strbase, mid); if ((nstrbase = malloc((u_int) allocsize)) == NULL) { warnx("%s", strerror(ENOMEM)); goto end; *************** *** 363,369 **** /* Fill in the new size of the string table. */ len = nstr - nstrbase; ! *(u_long *)nstrbase = fix_long_order(len, mid); /* * Copy the new string table into place. Nsym should be pointing --- 363,369 ---- /* Fill in the new size of the string table. */ len = nstr - nstrbase; ! *(u_long *)nstrbase = fix_32_order(len, mid); /* * Copy the new string table into place. Nsym should be pointing