summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1996-08-06 18:05:52 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1996-08-06 18:05:52 +0000
commit18a127209ebf62d2c13413ab57ee004175bafa70 (patch)
treee69b67ee5ae2382880accd383dea5dee693a3a4f /usr.bin
parentce3ba44433edd491d6b55b1f158445c4e38760ea (diff)
careful buf oflow, no longer use strcpy
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/fstat/fstat.c8
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);