PR/56443: RVP: dd conv=swab doesn't always work
This commit is contained in:
parent
aa84fd759c
commit
45fcea9556
|
@ -1,4 +1,4 @@
|
||||||
/* $NetBSD: dd_swab.c,v 1.1 2019/10/04 08:57:38 mrg Exp $ */
|
/* $NetBSD: dd_swab.c,v 1.2 2021/10/08 14:44:48 christos Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 1988, 1993
|
* Copyright (c) 1988, 1993
|
||||||
|
@ -41,7 +41,7 @@
|
||||||
#if 0
|
#if 0
|
||||||
static char sccsid[] = "@(#)swab.c 8.1 (Berkeley) 6/4/93";
|
static char sccsid[] = "@(#)swab.c 8.1 (Berkeley) 6/4/93";
|
||||||
#else
|
#else
|
||||||
__RCSID("$NetBSD: dd_swab.c,v 1.1 2019/10/04 08:57:38 mrg Exp $");
|
__RCSID("$NetBSD: dd_swab.c,v 1.2 2021/10/08 14:44:48 christos Exp $");
|
||||||
#endif
|
#endif
|
||||||
#endif /* LIBC_SCCS and not lint */
|
#endif /* LIBC_SCCS and not lint */
|
||||||
|
|
||||||
|
@ -71,7 +71,7 @@ dd_swab(const void * from, void * to, ssize_t len)
|
||||||
}
|
}
|
||||||
|
|
||||||
/* round to multiple of 8 */
|
/* round to multiple of 8 */
|
||||||
while ((--len % 8) != 0)
|
for (; (len % 8) != 0; --len)
|
||||||
STEP;
|
STEP;
|
||||||
len /= 8;
|
len /= 8;
|
||||||
if (len == 0)
|
if (len == 0)
|
||||||
|
|
Loading…
Reference in New Issue