Source-Changes-HG archive

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

[src/trunk]: src/usr.bin/mail printf fmt string without %s, from OpenBSD.



details:   https://anonhg.NetBSD.org/src/rev/c7afce2fa574
branches:  trunk
changeset: 494445:c7afce2fa574
user:      ad <ad%NetBSD.org@localhost>
date:      Thu Jul 06 14:12:31 2000 +0000

description:
printf fmt string without %s, from OpenBSD.

diffstat:

 usr.bin/mail/lex.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 7b6906ee060e -r c7afce2fa574 usr.bin/mail/lex.c
--- a/usr.bin/mail/lex.c        Thu Jul 06 14:01:06 2000 +0000
+++ b/usr.bin/mail/lex.c        Thu Jul 06 14:12:31 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: lex.c,v 1.14 2000/01/21 17:08:35 mycroft Exp $ */
+/*     $NetBSD: lex.c,v 1.15 2000/07/06 14:12:31 ad Exp $      */
 
 /*
  * Copyright (c) 1980, 1993
@@ -38,7 +38,7 @@
 #if 0
 static char sccsid[] = "@(#)lex.c      8.2 (Berkeley) 4/20/95";
 #else
-__RCSID("$NetBSD: lex.c,v 1.14 2000/01/21 17:08:35 mycroft Exp $");
+__RCSID("$NetBSD: lex.c,v 1.15 2000/07/06 14:12:31 ad Exp $");
 #endif
 #endif /* not lint */
 
@@ -232,7 +232,7 @@
                        if ((value("autoinc") != NOSTR) && (incfile() > 0))
                                printf("New mail has arrived.\n");
                        reset_on_stop = 1;
-                       printf(prompt);
+                       printf("%s", prompt);
                }
                fflush(stdout);
                sreset();



Home | Main Index | Thread Index | Old Index