From 123edfa10cd441942267fef4a093c5f856f911e1 Mon Sep 17 00:00:00 2001 From: deraadt <> Date: Fri, 7 Jul 2000 20:59:47 +0000 Subject: use %s with fprintf --- src/lib/libc/net/res_debug.c | 6 +++--- src/lib/libcrypto/rc4/rc4.c | 2 +- src/lib/libssl/src/crypto/rc4/rc4.c | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) (limited to 'src/lib') diff --git a/src/lib/libc/net/res_debug.c b/src/lib/libc/net/res_debug.c index c2725395a0..e1894b1508 100644 --- a/src/lib/libc/net/res_debug.c +++ b/src/lib/libc/net/res_debug.c @@ -1,4 +1,4 @@ -/* $OpenBSD: res_debug.c,v 1.9 1998/03/19 00:30:06 millert Exp $ */ +/* $OpenBSD: res_debug.c,v 1.10 2000/07/07 20:59:47 deraadt Exp $ */ /* * ++Copyright++ 1985, 1990, 1993 @@ -82,7 +82,7 @@ static char sccsid[] = "@(#)res_debug.c 8.1 (Berkeley) 6/4/93"; static char rcsid[] = "$From: res_debug.c,v 8.19 1996/11/26 10:11:23 vixie Exp $"; #else -static char rcsid[] = "$OpenBSD: res_debug.c,v 1.9 1998/03/19 00:30:06 millert Exp $"; +static char rcsid[] = "$OpenBSD: res_debug.c,v 1.10 2000/07/07 20:59:47 deraadt Exp $"; #endif #endif /* LIBC_SCCS and not lint */ @@ -204,7 +204,7 @@ do_rrset(msg, len, cp, cnt, pflag, file, hs) if ((n = ntohs(cnt))) { if ((!_res.pfcode) || ((sflag) && (_res.pfcode & RES_PRF_HEAD1))) - fprintf(file, hs); + fprintf(file, "%s", hs); while (--n >= 0) { if ((!_res.pfcode) || sflag) { cp = p_rr(cp, msg, file); diff --git a/src/lib/libcrypto/rc4/rc4.c b/src/lib/libcrypto/rc4/rc4.c index 709b7aff35..bfb0a3c1f9 100644 --- a/src/lib/libcrypto/rc4/rc4.c +++ b/src/lib/libcrypto/rc4/rc4.c @@ -113,7 +113,7 @@ int main(int argc, char *argv[]) { bad: for (pp=usage; (*pp != NULL); pp++) - fprintf(stderr,*pp); + fprintf(stderr,"%s",*pp); exit(1); } diff --git a/src/lib/libssl/src/crypto/rc4/rc4.c b/src/lib/libssl/src/crypto/rc4/rc4.c index 709b7aff35..bfb0a3c1f9 100644 --- a/src/lib/libssl/src/crypto/rc4/rc4.c +++ b/src/lib/libssl/src/crypto/rc4/rc4.c @@ -113,7 +113,7 @@ int main(int argc, char *argv[]) { bad: for (pp=usage; (*pp != NULL); pp++) - fprintf(stderr,*pp); + fprintf(stderr,"%s",*pp); exit(1); } -- cgit v1.2.3-55-g6feb