diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2003-02-19 07:33:35 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2003-02-19 07:33:35 +0000 |
commit | 958739047240f5d12bee263f4b1fdc73d757679a (patch) | |
tree | 681e0cfb640ccb7a137fafce207e9ee9d018c49d /usr.bin/vgrind/vgrindefs.c | |
parent | ce7671764357217480ac409c63773cf5581365a8 (diff) |
one strcpy -> strlcpy
Diffstat (limited to 'usr.bin/vgrind/vgrindefs.c')
-rw-r--r-- | usr.bin/vgrind/vgrindefs.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/vgrind/vgrindefs.c b/usr.bin/vgrind/vgrindefs.c index a4a559b45ab..818ce8b3a2e 100644 --- a/usr.bin/vgrind/vgrindefs.c +++ b/usr.bin/vgrind/vgrindefs.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vgrindefs.c,v 1.4 2003/02/19 07:32:36 deraadt Exp $ */ +/* $OpenBSD: vgrindefs.c,v 1.5 2003/02/19 07:33:34 deraadt Exp $ */ /* $NetBSD: vgrindefs.c,v 1.5 1994/12/20 12:05:29 cgd Exp $ */ /* @@ -38,7 +38,7 @@ #if 0 static char sccsid[] = "@(#)vgrindefs.c 8.1 (Berkeley) 6/6/93"; #endif -static char rcsid[] = "$OpenBSD: vgrindefs.c,v 1.4 2003/02/19 07:32:36 deraadt Exp $"; +static char rcsid[] = "$OpenBSD: vgrindefs.c,v 1.5 2003/02/19 07:33:34 deraadt Exp $"; #endif /* not lint */ #define BUFSIZ 1024 @@ -152,7 +152,7 @@ tnchktc() /* p now points to beginning of last field */ if (p[0] != 't' || p[1] != 'c') return(1); - strcpy(tcname,p+3); + strlcpy(tcname, p+3, sizeof tcname); q = tcname; while (q && *q != ':') q++; |