diff options
-rw-r--r-- | sys/dev/bio.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/bio.c b/sys/dev/bio.c index ad28ba5fe10..b867fcde3b6 100644 --- a/sys/dev/bio.c +++ b/sys/dev/bio.c @@ -1,4 +1,4 @@ -/* $OpenBSD: bio.c,v 1.10 2007/10/09 17:05:19 gilles Exp $ */ +/* $OpenBSD: bio.c,v 1.11 2007/12/23 17:09:49 deraadt Exp $ */ /* * Copyright (c) 2002 Niklas Hallqvist. All rights reserved. @@ -80,7 +80,7 @@ bioioctl(dev_t dev, u_long cmd, caddr_t addr, int flag, struct proc *p) switch (cmd) { case BIOCLOCATE: locate = (struct bio_locate *)addr; - error = copyinstr(locate->bl_name, name, 16, NULL); + error = copyinstr(locate->bl_name, name, sizeof name, NULL); if (error != 0) return (error); locate->bl_cookie = bio_lookup(name); |