diff options
author | Hans Insulander <hin@cvs.openbsd.org> | 2003-04-03 12:05:59 +0000 |
---|---|---|
committer | Hans Insulander <hin@cvs.openbsd.org> | 2003-04-03 12:05:59 +0000 |
commit | 448414f170f311452f7117c6fdee8addb9964a55 (patch) | |
tree | 5985aafeee6c66fd128fbae71c50424316ebdc06 /usr.bin/telnet/utilities.c | |
parent | 7bf1f7730951cca007e18a5cb600dbfd7418da34 (diff) |
strcpy -> strlcpy
strcat -> strlcat
ok millert@
Diffstat (limited to 'usr.bin/telnet/utilities.c')
-rw-r--r-- | usr.bin/telnet/utilities.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/telnet/utilities.c b/usr.bin/telnet/utilities.c index 8198b4fe20f..ee8ff1bbd3e 100644 --- a/usr.bin/telnet/utilities.c +++ b/usr.bin/telnet/utilities.c @@ -1,4 +1,4 @@ -/* $OpenBSD: utilities.c,v 1.7 2002/02/01 06:59:17 itojun Exp $ */ +/* $OpenBSD: utilities.c,v 1.8 2003/04/03 12:05:58 hin Exp $ */ /* $NetBSD: utilities.c,v 1.5 1996/02/28 21:04:21 thorpej Exp $ */ /* @@ -107,7 +107,7 @@ SetNetTrace(file) fprintf(stderr, "Cannot open %s.\n", file); } NetTrace = stdout; - strcpy((char *)NetTraceFile, "(standard output)"); + strlcpy((char *)NetTraceFile, "(standard output)", sizeof(NetTraceFile)); } void |