diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1996-08-06 18:05:52 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1996-08-06 18:05:52 +0000 |
commit | 18a127209ebf62d2c13413ab57ee004175bafa70 (patch) | |
tree | e69b67ee5ae2382880accd383dea5dee693a3a4f | |
parent | ce3ba44433edd491d6b55b1f158445c4e38760ea (diff) |
careful buf oflow, no longer use strcpy
-rw-r--r-- | usr.bin/fstat/fstat.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/fstat/fstat.c b/usr.bin/fstat/fstat.c index 6a9a0527dd0..d11d3ded69d 100644 --- a/usr.bin/fstat/fstat.c +++ b/usr.bin/fstat/fstat.c @@ -1,4 +1,4 @@ -/* $OpenBSD: fstat.c,v 1.3 1996/05/05 19:04:21 deraadt Exp $ */ +/* $OpenBSD: fstat.c,v 1.4 1996/08/06 18:05:51 deraadt Exp $ */ /*- * Copyright (c) 1988, 1993 @@ -41,7 +41,7 @@ static char copyright[] = #ifndef lint /*static char sccsid[] = "from: @(#)fstat.c 8.1 (Berkeley) 6/6/93";*/ -static char *rcsid = "$OpenBSD: fstat.c,v 1.3 1996/05/05 19:04:21 deraadt Exp $"; +static char *rcsid = "$OpenBSD: fstat.c,v 1.4 1996/08/06 18:05:51 deraadt Exp $"; #endif /* not lint */ #include <sys/param.h> @@ -408,7 +408,7 @@ vtrans(vp, i, flag) badtype = "error"; break; default: { - static char unknown[10]; + static char unknown[20]; sprintf(badtype = unknown, "?(%x)", vn.v_tag); break;; } @@ -588,7 +588,7 @@ socktrans(sock, i) struct inpcb inpcb; struct unpcb unpcb; int len; - char dname[32], *strcpy(); + char dname[32]; PREFIX(i); |