diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2000-07-07 20:59:48 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2000-07-07 20:59:48 +0000 |
commit | 642564cc7110fc420b93eb4b9174bf313cd8329f (patch) | |
tree | 77a2f7ddcdd5d50b7441978cbfbd9fe3220f3de4 /lib/libc | |
parent | 166500e37dbedc10646a7d57241ffc511009b8aa (diff) |
use %s with fprintf
Diffstat (limited to 'lib/libc')
-rw-r--r-- | lib/libc/net/res_debug.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libc/net/res_debug.c b/lib/libc/net/res_debug.c index c2725395a04..e1894b15086 100644 --- a/lib/libc/net/res_debug.c +++ b/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); |