diff options
author | 2007-12-23 17:09:49 +0000 | |
---|---|---|
committer | 2007-12-23 17:09:49 +0000 | |
commit | 4d165809b0b0794a4d04743f19a2437eca44019a (patch) | |
tree | 85f37d26aadd3120a294d1fab18b5c75afc6eba2 | |
parent | use timer_running (with left = NULL, which the last commit made possible) (diff) | |
download | wireguard-openbsd-4d165809b0b0794a4d04743f19a2437eca44019a.tar.xz wireguard-openbsd-4d165809b0b0794a4d04743f19a2437eca44019a.zip |
use sizeof where needed
-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); |