diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2002-06-01 01:40:39 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2002-06-01 01:40:39 +0000 |
commit | d37e31b7a32d5f1ce6af4bf8d561608226266d8a (patch) | |
tree | 939b9932adaafbbf6f3fdc53d25b8b79090f1db7 /usr.bin/rpcgen/rpc_scan.c | |
parent | f4c0cad0edf2f0e459707cc36180dbd427e668eb (diff) |
cleanups
Diffstat (limited to 'usr.bin/rpcgen/rpc_scan.c')
-rw-r--r-- | usr.bin/rpcgen/rpc_scan.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.bin/rpcgen/rpc_scan.c b/usr.bin/rpcgen/rpc_scan.c index 70f00549750..8a0dd317686 100644 --- a/usr.bin/rpcgen/rpc_scan.c +++ b/usr.bin/rpcgen/rpc_scan.c @@ -1,4 +1,4 @@ -/* $OpenBSD: rpc_scan.c,v 1.8 2002/02/16 21:27:51 millert Exp $ */ +/* $OpenBSD: rpc_scan.c,v 1.9 2002/06/01 01:40:38 deraadt Exp $ */ /* $NetBSD: rpc_scan.c,v 1.4 1995/06/11 21:50:02 pk Exp $ */ /* * Sun RPC is a product of Sun Microsystems, Inc. and is provided for @@ -291,12 +291,12 @@ get_token(tokp) char buf[100]; char *p; - s_print(buf, "illegal character in file: "); + snprintf(buf, sizeof buf, "illegal character in file: "); p = buf + strlen(buf); if (isprint(*where)) { - s_print(p, "%c", *where); + sprintf(p, "%c", *where); } else { - s_print(p, "%d", *where); + sprintf(p, "%d", *where); } error(buf); } @@ -460,7 +460,7 @@ static printdirective(line) char *line; { - f_print(fout, "%s", line + 1); + fprintf(fout, "%s", line + 1); } static |