Source-Changes-HG archive

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

[src/trunk]: src/usr.bin/vi/vi If a function takes two string arguments and a...



details:   https://anonhg.NetBSD.org/src/rev/35f7eb3edfc4
branches:  trunk
changeset: 509445:35f7eb3edfc4
user:      simonb <simonb%NetBSD.org@localhost>
date:      Fri May 04 14:45:08 2001 +0000

description:
If a function takes two string arguments and a printf-type printing
function uses both those arguments, then why don't we use two "%s"s
in the printf-style format string too?

diffstat:

 usr.bin/vi/vi/vs_msg.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 938e97f47ddd -r 35f7eb3edfc4 usr.bin/vi/vi/vs_msg.c
--- a/usr.bin/vi/vi/vs_msg.c    Fri May 04 14:13:50 2001 +0000
+++ b/usr.bin/vi/vi/vs_msg.c    Fri May 04 14:45:08 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: vs_msg.c,v 1.4 2001/03/31 11:37:52 aymeric Exp $       */
+/*     $NetBSD: vs_msg.c,v 1.5 2001/05/04 14:45:08 simonb Exp $        */
 
 /*-
  * Copyright (c) 1993, 1994
@@ -181,7 +181,7 @@
         */
        if (F_ISSET(sp, SC_SCR_EXWROTE)) {
                (void)ex_printf(sp,
-                   "%s\n", m1 == NULL? "" : m1, m2 == NULL ? "" : m2);
+                   "%s%s\n", m1 == NULL? "" : m1, m2 == NULL ? "" : m2);
                (void)ex_fflush(sp);
        }
 



Home | Main Index | Thread Index | Old Index