summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2003-05-07 23:01:25 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2003-05-07 23:01:25 +0000
commit1dc24eca7f10a908aeb63e9d8dd8e5b4acb17c33 (patch)
treed83b9c825611c4660accbec231a2a23c56ccb49c
parentc43f2054db0d741281d16763518f2ef05135d569 (diff)
string fix; tedu ok
-rw-r--r--sys/isofs/cd9660/cd9660_vnops.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/isofs/cd9660/cd9660_vnops.c b/sys/isofs/cd9660/cd9660_vnops.c
index 4e96ba3dc18..c9d14853f51 100644
--- a/sys/isofs/cd9660/cd9660_vnops.c
+++ b/sys/isofs/cd9660/cd9660_vnops.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cd9660_vnops.c,v 1.24 2002/11/08 04:34:17 art Exp $ */
+/* $OpenBSD: cd9660_vnops.c,v 1.25 2003/05/07 23:01:24 deraadt Exp $ */
/* $NetBSD: cd9660_vnops.c,v 1.42 1997/10/16 23:56:57 christos Exp $ */
/*-
@@ -665,7 +665,8 @@ cd9660_readdir(v)
error = iso_uiodir(idp,&idp->current,idp->curroff);
break;
default: /* ISO_FTYPE_DEFAULT || ISO_FTYPE_9660 */
- strcpy(idp->current.d_name,"..");
+ strlcpy(idp->current.d_name,"..",
+ sizeof idp->current.d_name);
if (idp->current.d_namlen == 1 && ep->name[0] == 0) {
idp->current.d_namlen = 1;
error = iso_uiodir(idp,&idp->current,idp->curroff);