Module Name:    src
Committed By:   joerg
Date:           Tue Jun 25 21:09:33 UTC 2019

Modified Files:
        src/usr.bin/msgc: msg_sys.def

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


To generate a diff of this commit:
cvs rdiff -u -r1.46 -r1.47 src/usr.bin/msgc/msg_sys.def

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/usr.bin/msgc/msg_sys.def
diff -u src/usr.bin/msgc/msg_sys.def:1.46 src/usr.bin/msgc/msg_sys.def:1.47
--- src/usr.bin/msgc/msg_sys.def:1.46	Thu Jun 20 11:31:12 2019
+++ src/usr.bin/msgc/msg_sys.def	Tue Jun 25 21:09:33 2019
@@ -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 @@ msg_fmt_prompt_win(msg msg_no, int x, in
 	}
 
 	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) {

Reply via email to