Source-Changes-HG archive

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

[src/trunk]: src/usr.sbin/sysinst Fix invalid msg_fmt_table_add() call, point...



details:   https://anonhg.NetBSD.org/src/rev/69591febbc00
branches:  trunk
changeset: 365214:69591febbc00
user:      martin <martin%NetBSD.org@localhost>
date:      Thu Apr 14 15:48:31 2022 +0000

description:
Fix invalid msg_fmt_table_add() call, pointed out by Andreas Gustafsson.

diffstat:

 usr.sbin/sysinst/util.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r 241989b13dc1 -r 69591febbc00 usr.sbin/sysinst/util.c
--- a/usr.sbin/sysinst/util.c   Wed Apr 13 22:58:18 2022 +0000
+++ b/usr.sbin/sysinst/util.c   Thu Apr 14 15:48:31 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: util.c,v 1.64 2022/01/29 15:32:49 martin Exp $ */
+/*     $NetBSD: util.c,v 1.65 2022/04/14 15:48:31 martin Exp $ */
 
 /*
  * Copyright 1997 Piermont Information Systems Inc.
@@ -1156,6 +1156,7 @@
        SHA256_CTX ctx;
        char buf[256];
        uint8_t digest[SHA256_DIGEST_LENGTH];
+       static const char prompt[] = "> ";
        size_t l;
        int txt_y, maxy, init_y;
        bool ok = false;
@@ -1181,7 +1182,7 @@
                } else {
                        wmove(mainwin, txt_y, 0);
                }
-               msg_fmt_table_add(0, "> ");
+               msg_fmt_table_add(prompt, prompt);
                mvwgetnstr(mainwin, txt_y, 2, buf, sizeof buf);
                l = strlen(buf);
                if (l > 0)



Home | Main Index | Thread Index | Old Index