Source-Changes-HG archive

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

[src/trunk]: src/usr.bin/msgc Do the fmtcheck for both message lookups to sat...



details:   https://anonhg.NetBSD.org/src/rev/3733ab8add8e
branches:  trunk
changeset: 452273:3733ab8add8e
user:      joerg <joerg%NetBSD.org@localhost>
date:      Tue Jun 25 21:09:33 2019 +0000

description:
Do the fmtcheck for both message lookups to satisfy format string
literal checks.

diffstat:

 usr.bin/msgc/msg_sys.def |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (19 lines):

diff -r 71f78075bb50 -r 3733ab8add8e usr.bin/msgc/msg_sys.def
--- a/usr.bin/msgc/msg_sys.def  Tue Jun 25 19:47:35 2019 +0000
+++ b/usr.bin/msgc/msg_sys.def  Tue Jun 25 21:09:33 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: msg_sys.def,v 1.46 2019/06/20 11:31:12 martin Exp $    */
+/*     $NetBSD: msg_sys.def,v 1.47 2019/06/25 21:09:33 joerg Exp $     */
 
 /*
  * Copyright 1997 Piermont Information Systems Inc.
@@ -592,7 +592,8 @@
        }
 
        va_start(ap, fmt);
-       _msg_vprompt(msg_string(msg_no), msg_flags, def, val, val_buf_len, ap);
+       _msg_vprompt(fmtcheck(msg_string(msg_no), fmt), msg_flags, def, val,
+           val_buf_len, ap);
        va_end(ap);
 
        if (win != NULL) {



Home | Main Index | Thread Index | Old Index