diff options
author | 2003-04-05 00:43:19 +0000 | |
---|---|---|
committer | 2003-04-05 00:43:19 +0000 | |
commit | 88a28a4cc3e139e5a30e0d9d121cbb3359acb1a6 (patch) | |
tree | 614487de6ca6afb83aeefa99c5faf1f18f5632a4 /lib/libwrap/options.c | |
parent | two fixes; help from tedu & tdeval (diff) | |
download | wireguard-openbsd-88a28a4cc3e139e5a30e0d9d121cbb3359acb1a6.tar.xz wireguard-openbsd-88a28a4cc3e139e5a30e0d9d121cbb3359acb1a6.zip |
strcpy/strcat -> strlcpy/strlcat
ok tedu@, hints by deraadt@ and millert@
Diffstat (limited to 'lib/libwrap/options.c')
-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 fe624844996..ee2cbfd778f 100644 --- a/lib/libwrap/options.c +++ b/lib/libwrap/options.c @@ -1,4 +1,4 @@ -/* $OpenBSD: options.c,v 1.4 2002/06/07 00:04:21 itojun Exp $ */ +/* $OpenBSD: options.c,v 1.5 2003/04/05 00:43:20 tdeval 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.4 2002/06/07 00:04:21 itojun Exp $"; +static char rcsid[] = "$OpenBSD: options.c,v 1.5 2003/04/05 00:43:20 tdeval Exp $"; #endif #endif @@ -254,7 +254,7 @@ struct request_info *request; ungetc(ch, fp); while (fgets(ibuf, sizeof(ibuf) - 1, fp)) { if (split_at(ibuf, '\n')) - strcat(ibuf, "\r\n"); + strlcat(ibuf, "\r\n", sizeof(ibuf)); percent_x(obuf, sizeof(obuf), ibuf, request); write(request->fd, obuf, strlen(obuf)); } |