Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/bin/dd PR/56443: RVP: dd conv=swab doesn't always work



details:   https://anonhg.NetBSD.org/src/rev/b16d3eb5f10f
branches:  trunk
changeset: 988629:b16d3eb5f10f
user:      christos <christos%NetBSD.org@localhost>
date:      Fri Oct 08 14:44:48 2021 +0000

description:
PR/56443: RVP: dd conv=swab doesn't always work

diffstat:

 bin/dd/dd_swab.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 9a2fd33144d1 -r b16d3eb5f10f bin/dd/dd_swab.c
--- a/bin/dd/dd_swab.c  Fri Oct 08 07:17:32 2021 +0000
+++ b/bin/dd/dd_swab.c  Fri Oct 08 14:44:48 2021 +0000
@@ -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
@@ -41,7 +41,7 @@
 #if 0
 static char sccsid[] = "@(#)swab.c     8.1 (Berkeley) 6/4/93";
 #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 /* LIBC_SCCS and not lint */
 
@@ -71,7 +71,7 @@
        }
 
        /* round to multiple of 8 */
-       while ((--len % 8) != 0)
+       for (; (len % 8) != 0; --len)
                STEP;
        len /= 8;
        if (len == 0)



Home | Main Index | Thread Index | Old Index