Make sure to byte-swap all of the relevant fields; especially c_flags.

This commit is contained in:
mycroft 1996-12-04 03:54:04 +00:00
parent 8b0617fdcf
commit 728e20590f
1 changed files with 3 additions and 3 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: tape.c,v 1.22 1996/11/30 18:31:29 cgd Exp $ */
/* $NetBSD: tape.c,v 1.23 1996/12/04 03:54:04 mycroft Exp $ */
/*
* Copyright (c) 1983, 1993
@ -42,7 +42,7 @@
#if 0
static char sccsid[] = "@(#)tape.c 8.6 (Berkeley) 9/13/94";
#else
static char rcsid[] = "$NetBSD: tape.c,v 1.22 1996/11/30 18:31:29 cgd Exp $";
static char rcsid[] = "$NetBSD: tape.c,v 1.23 1996/12/04 03:54:04 mycroft Exp $";
#endif
#endif /* not lint */
@ -1045,7 +1045,7 @@ gethead(buf)
if (checksum((int *)buf) == FAIL)
return (FAIL);
if (Bcvt)
swabst((u_char *)"8l4s31l", (u_char *)buf);
swabst((u_char *)"8l4s31l528b1l192b2l", (u_char *)buf);
goto good;
}
readtape((char *)(&u_ospcl.s_ospcl));