diff options
| author | martin <martin@NetBSD.org> | 2022-04-14 15:48:31 +0000 |
|---|---|---|
| committer | martin <martin@NetBSD.org> | 2022-04-14 15:48:31 +0000 |
| commit | 8da5a8679f232cbbd0299672e43b51b1b66cd037 (patch) | |
| tree | 30f574c95cfc27441474ef69fab1d790a64df95d /usr.sbin/sysinst/util.c | |
| parent | 0ab1a55a151b7b6e5081235c44ff7f10ea04dd6a (diff) | |
Fix invalid msg_fmt_table_add() call, pointed out by Andreas Gustafsson.
Diffstat (limited to 'usr.sbin/sysinst/util.c')
| -rw-r--r-- | usr.sbin/sysinst/util.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/sysinst/util.c b/usr.sbin/sysinst/util.c index 8965c0eca2f..8aa3f49833f 100644 --- a/usr.sbin/sysinst/util.c +++ b/usr.sbin/sysinst/util.c @@ -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 @@ entropy_add_manual(void) 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 @@ entropy_add_manual(void) } 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) |
