summaryrefslogtreecommitdiff
path: root/sbin/raidctl
diff options
context:
space:
mode:
authorThierry Deval <tdeval@cvs.openbsd.org>2002-05-22 21:23:50 +0000
committerThierry Deval <tdeval@cvs.openbsd.org>2002-05-22 21:23:50 +0000
commitfb3c8729f8d6cd87a750e6cce39736b97fb5ae89 (patch)
tree0230ea50ffdef0e04f6b7c7420c51b8d8a4f0b75 /sbin/raidctl
parenta0cd0d638cfd1df3fe1bd6a57313de77b83f6bb0 (diff)
use strlcpy(3)
10x deraadt@
Diffstat (limited to 'sbin/raidctl')
-rw-r--r--sbin/raidctl/rf_configure.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sbin/raidctl/rf_configure.c b/sbin/raidctl/rf_configure.c
index 3bffc2eef4f..198f5433c33 100644
--- a/sbin/raidctl/rf_configure.c
+++ b/sbin/raidctl/rf_configure.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rf_configure.c,v 1.7 2002/04/19 00:15:28 miod Exp $ */
+/* $OpenBSD: rf_configure.c,v 1.8 2002/05/22 21:23:49 tdeval Exp $ */
/* $NetBSD: rf_configure.c,v 1.14 2001/02/04 21:05:42 christos Exp $ */
/*
@@ -202,11 +202,11 @@ rf_MakeConfig(configname, cfgPtr)
cp = rf_find_non_white(buf);
if (!strncmp(cp, "START", strlen("START")))
break;
- (void) strcpy(&cfgPtr->debugVars[c][0], cp);
+ strlcpy(&cfgPtr->debugVars[c][0], cp, RF_MAXDBGVLEN);
}
}
rewind(fp);
- strcpy(cfgPtr->diskQueueType,"fifo");
+ strlcpy(cfgPtr->diskQueueType,"fifo", sizeof(RF_DiskQueueType_t));
cfgPtr->maxOutstandingDiskReqs = 1;
/* scan the file for the block related to disk queues */
if (rf_search_file_for_start_of("queue",buf,256,fp)) {