From 6737e1d3e4fe187878e30eaf843b8a677c6d4990 Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Thu, 13 Mar 2003 15:59:23 +0000 Subject: 1 byte underflow; from tdeval --- sbin/raidctl/raidctl.c | 4 ++-- 1 file 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, -- cgit v1.2.3