Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-1-4]: src/libexec/telnetd Pull up revision 1.15 (requested by is):
details: https://anonhg.NetBSD.org/src/rev/8471fe2652b5
branches: netbsd-1-4
changeset: 470975:8471fe2652b5
user: he <he%NetBSD.org@localhost>
date: Tue Oct 10 21:48:22 2000 +0000
description:
Pull up revision 1.15 (requested by is):
Format string cleanup.
diffstat:
libexec/telnetd/utility.c | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
diffs (48 lines):
diff -r a16c38135cf1 -r 8471fe2652b5 libexec/telnetd/utility.c
--- a/libexec/telnetd/utility.c Tue Oct 10 21:48:19 2000 +0000
+++ b/libexec/telnetd/utility.c Tue Oct 10 21:48:22 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: utility.c,v 1.12 1997/10/16 06:55:38 mikel Exp $ */
+/* $NetBSD: utility.c,v 1.12.4.1 2000/10/10 21:48:22 he Exp $ */
/*
* Copyright (c) 1989, 1993
@@ -38,7 +38,7 @@
#if 0
static char sccsid[] = "@(#)utility.c 8.4 (Berkeley) 5/30/95";
#else
-__RCSID("$NetBSD: utility.c,v 1.12 1997/10/16 06:55:38 mikel Exp $");
+__RCSID("$NetBSD: utility.c,v 1.12.4.1 2000/10/10 21:48:22 he Exp $");
#endif
#endif /* not lint */
@@ -909,25 +909,25 @@
for (i = 2; i < length; i++ ) {
switch (pointer[i]) {
case NEW_ENV_VAR:
- sprintf(nfrontp, "\" VAR " + noquote);
+ sprintf(nfrontp, "%s", "\" VAR " + noquote);
nfrontp += strlen(nfrontp);
noquote = 2;
break;
case NEW_ENV_VALUE:
- sprintf(nfrontp, "\" VALUE " + noquote);
+ sprintf(nfrontp, "%s", "\" VALUE " + noquote);
nfrontp += strlen(nfrontp);
noquote = 2;
break;
case ENV_ESC:
- sprintf(nfrontp, "\" ESC " + noquote);
+ sprintf(nfrontp, "%s", "\" ESC " + noquote);
nfrontp += strlen(nfrontp);
noquote = 2;
break;
case ENV_USERVAR:
- sprintf(nfrontp, "\" USERVAR " + noquote);
+ sprintf(nfrontp, "%s", "\" USERVAR " + noquote);
nfrontp += strlen(nfrontp);
noquote = 2;
break;
Home |
Main Index |
Thread Index |
Old Index