Source-Changes-HG archive

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

[src/trunk]: src/usr.bin/aiomixer aiomixer: fix calculation of maximum screen...



details:   https://anonhg.NetBSD.org/src/rev/597825c5168e
branches:  trunk
changeset: 984651:597825c5168e
user:      nia <nia%NetBSD.org@localhost>
date:      Thu Jul 15 06:59:55 2021 +0000

description:
aiomixer: fix calculation of maximum screen width

diffstat:

 usr.bin/aiomixer/draw.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 9af4ec0141c7 -r 597825c5168e usr.bin/aiomixer/draw.c
--- a/usr.bin/aiomixer/draw.c   Thu Jul 15 06:57:10 2021 +0000
+++ b/usr.bin/aiomixer/draw.c   Thu Jul 15 06:59:55 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: draw.c,v 1.7 2021/05/29 09:11:41 nia Exp $ */
+/* $NetBSD: draw.c,v 1.8 2021/07/15 06:59:55 nia Exp $ */
 /*-
  * Copyright (c) 2021 The NetBSD Foundation, Inc.
  * All rights reserved.
@@ -311,7 +311,7 @@
 {
        wprintw(aio->header, "\n");
        mvwaddstr(aio->header, 0,
-           getmaxx(aio->header) - (int)sizeof("NetBSD audio mixer") + 1,
+           getmaxx(aio->header) - ((int)sizeof("NetBSD audio mixer") + 1),
            "NetBSD audio mixer");
 
        if (aio->mixerdev.version[0] != '\0') {



Home | Main Index | Thread Index | Old Index