diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2003-06-01 15:53:44 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2003-06-01 15:53:44 +0000 |
commit | c1b5e4353daf6f1929dad2fc6e04853b6ee139ae (patch) | |
tree | 797bc454bacbb174ba9c864e6e5782aa4eca9c9d /usr.bin | |
parent | 345cf55c40f7beff8ab2f9db25c315c38d34bfd6 (diff) |
various format string cleanups; tedu ok
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/mg/undo.c | 4 | ||||
-rw-r--r-- | usr.bin/oldrdist/server.c | 6 | ||||
-rw-r--r-- | usr.bin/rpcgen/rpc_svcout.c | 4 |
3 files changed, 7 insertions, 7 deletions
diff --git a/usr.bin/mg/undo.c b/usr.bin/mg/undo.c index 2f9485e81db..c25d351608c 100644 --- a/usr.bin/mg/undo.c +++ b/usr.bin/mg/undo.c @@ -1,4 +1,4 @@ -/* $OpenBSD: undo.c,v 1.16 2003/05/20 03:08:55 cloder Exp $ */ +/* $OpenBSD: undo.c,v 1.17 2003/06/01 15:53:34 deraadt Exp $ */ /* * Copyright (c) 2002 Vincent Labrecque * All rights reserved. @@ -403,7 +403,7 @@ undo_dump(void) } snprintf(tmp, sizeof tmp, " [%d]", rec->region.r_size); strlcat(buf, tmp, sizeof buf); - addlinef(bp, buf); + addlinef(bp, "%s", buf); } return (TRUE); } diff --git a/usr.bin/oldrdist/server.c b/usr.bin/oldrdist/server.c index c30785de140..b835d55f5a5 100644 --- a/usr.bin/oldrdist/server.c +++ b/usr.bin/oldrdist/server.c @@ -1,4 +1,4 @@ -/* $OpenBSD: server.c,v 1.22 2003/04/06 17:57:45 ho Exp $ */ +/* $OpenBSD: server.c,v 1.23 2003/06/01 15:53:35 deraadt Exp $ */ /* * Copyright (c) 1983, 1993 @@ -35,7 +35,7 @@ #ifndef lint /* from: static char sccsid[] = "@(#)server.c 8.1 (Berkeley) 6/9/93"; */ -static char *rcsid = "$OpenBSD: server.c,v 1.22 2003/04/06 17:57:45 ho Exp $"; +static char *rcsid = "$OpenBSD: server.c,v 1.23 2003/06/01 15:53:35 deraadt Exp $"; #endif /* not lint */ #include <sys/wait.h> @@ -216,7 +216,7 @@ server() continue; case 'L': /* Log. save message in log file */ - log(lfp, cp); + log(lfp, "%s", cp); continue; #endif diff --git a/usr.bin/rpcgen/rpc_svcout.c b/usr.bin/rpcgen/rpc_svcout.c index 274598200b1..efc0c888504 100644 --- a/usr.bin/rpcgen/rpc_svcout.c +++ b/usr.bin/rpcgen/rpc_svcout.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rpc_svcout.c,v 1.15 2002/07/05 05:39:42 deraadt Exp $ */ +/* $OpenBSD: rpc_svcout.c,v 1.16 2003/06/01 15:53:36 deraadt Exp $ */ /* $NetBSD: rpc_svcout.c,v 1.7 1995/06/24 14:59:59 pk Exp $ */ /* * Sun RPC is a product of Sun Microsystems, Inc. and is provided for @@ -306,7 +306,7 @@ write_real_program(def) fprintf(fout, "("); /* arg name */ if (proc->arg_num > 1) - fprintf(fout, proc->args.argname); + fprintf(fout, "%s", proc->args.argname); else ptype(proc->args.decls->decl.prefix, proc->args.decls->decl.type, 0); |