summaryrefslogtreecommitdiff
path: root/sbin
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2003-03-13 15:59:23 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2003-03-13 15:59:23 +0000
commit6737e1d3e4fe187878e30eaf843b8a677c6d4990 (patch)
treeb79212d1a38278c87de889e47463e2b60b635951 /sbin
parent6c0bb8c7a42d42230f0786e8b4ca6567ded4fc69 (diff)
1 byte underflow; from tdeval
Diffstat (limited to 'sbin')
-rw-r--r--sbin/raidctl/raidctl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/raidctl/raidctl.c b/sbin/raidctl/raidctl.c
index aa4fe894098..f90cb680394 100644
--- a/sbin/raidctl/raidctl.c
+++ b/sbin/raidctl/raidctl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: raidctl.c,v 1.19 2003/03/13 09:09:27 deraadt Exp $ */
+/* $OpenBSD: raidctl.c,v 1.20 2003/03/13 15:59:22 deraadt Exp $ */
/* $NetBSD: raidctl.c,v 1.27 2001/07/10 01:30:52 lukem Exp $ */
/*-
@@ -1244,7 +1244,7 @@ get_all_devices(diskarray, genericname)
fp = disks;
while ((p = strsep(&fp, ",")) != NULL) {
if (strstr((const char*)p, genericname) != NULL) {
- int len = strlen(p) + 6;
+ int len = strlen(p) + 7;
(*diskarray)[i] = (char*) malloc(len);
snprintf((*diskarray)[i++], len, "/dev/%s%c", p,