Module Name:    src
Committed By:   christos
Date:           Wed Aug 17 12:56:55 UTC 2011

Modified Files:
        src/dist/nvi/common: msg.c
        src/dist/nvi/ex: ex_tag.c

Log Message:
fix raw string formats


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/dist/nvi/common/msg.c
cvs rdiff -u -r1.9 -r1.10 src/dist/nvi/ex/ex_tag.c

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

Modified files:

Index: src/dist/nvi/common/msg.c
diff -u src/dist/nvi/common/msg.c:1.4 src/dist/nvi/common/msg.c:1.5
--- src/dist/nvi/common/msg.c:1.4	Mon Mar 21 10:53:02 2011
+++ src/dist/nvi/common/msg.c	Wed Aug 17 08:56:55 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: msg.c,v 1.4 2011/03/21 14:53:02 tnozaki Exp $ */
+/*	$NetBSD: msg.c,v 1.5 2011/08/17 12:56:55 christos Exp $ */
 
 /*-
  * Copyright (c) 1991, 1993, 1994
@@ -388,7 +388,7 @@
 	const char *nstr;
 
 	if (str == NULL) {
-		msgq(sp, mtype, fmt);
+		msgq(sp, mtype, "%s", fmt);
 		return;
 	}
 	INT2CHAR(sp, str, STRLEN(str) + 1, nstr, nlen);
@@ -408,7 +408,7 @@
 	char *p;
 
 	if (str == NULL) {
-		msgq(sp, mtype, fmt);
+		msgq(sp, mtype, "%s", fmt);
 		return;
 	}
 

Index: src/dist/nvi/ex/ex_tag.c
diff -u src/dist/nvi/ex/ex_tag.c:1.9 src/dist/nvi/ex/ex_tag.c:1.10
--- src/dist/nvi/ex/ex_tag.c:1.9	Mon Mar 21 10:53:03 2011
+++ src/dist/nvi/ex/ex_tag.c	Wed Aug 17 08:56:55 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: ex_tag.c,v 1.9 2011/03/21 14:53:03 tnozaki Exp $ */
+/*	$NetBSD: ex_tag.c,v 1.10 2011/08/17 12:56:55 christos Exp $ */
 
 /*-
  * Copyright (c) 1992, 1993, 1994
@@ -204,7 +204,7 @@
 	if (tqp->current->msg) {
 	    INT2CHAR(sp, tqp->current->msg, tqp->current->mlen + 1,
 		     np, nlen);
-	    msgq(sp, M_INFO, np);
+	    msgq(sp, M_INFO, "%s", np);
 	}
 	return (0);
 }

Reply via email to