diff options
author | 1997-03-04 16:32:36 +0000 | |
---|---|---|
committer | 1997-03-04 16:32:36 +0000 | |
commit | e492d7d58010e987b3cc7ab219ead4707fb59469 (patch) | |
tree | c5ed811003125ff4d6e4610cd4d71d61ff254ba0 | |
parent | Pull in all of tcpd.h here, too, even though it's not really needed. (diff) | |
download | wireguard-openbsd-e492d7d58010e987b3cc7ab219ead4707fb59469.tar.xz wireguard-openbsd-e492d7d58010e987b3cc7ab219ead4707fb59469.zip |
sprintf -> snprintf paranoia
-rw-r--r-- | lib/libwrap/options.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libwrap/options.c b/lib/libwrap/options.c index 30e456f3887..411cf72b2ef 100644 --- a/lib/libwrap/options.c +++ b/lib/libwrap/options.c @@ -1,4 +1,4 @@ -/* $OpenBSD: options.c,v 1.1 1997/02/26 03:06:54 downsj Exp $ */ +/* $OpenBSD: options.c,v 1.2 1997/03/04 16:32:36 bitblt Exp $ */ /* * General skeleton for adding options to the access control language. The @@ -34,7 +34,7 @@ #if 0 static char sccsid[] = "@(#) options.c 1.17 96/02/11 17:01:31"; #else -static char rcsid[] = "$OpenBSD: options.c,v 1.1 1997/02/26 03:06:54 downsj Exp $"; +static char rcsid[] = "$OpenBSD: options.c,v 1.2 1997/03/04 16:32:36 bitblt Exp $"; #endif #endif @@ -232,7 +232,7 @@ struct request_info *request; int ch; FILE *fp; - sprintf(path, "%s/%s", value, eval_daemon(request)); + snprintf(path, sizeof (path), "%s/%s", value, eval_daemon(request)); if ((fp = fopen(path, "r")) != 0) { while ((ch = fgetc(fp)) == 0) write(request->fd, "", 1); |