aboutsummaryrefslogtreecommitdiff
path: root/sbin
diff options
context:
space:
mode:
authorLukas Ertl <le@FreeBSD.org>2004-07-24 19:11:40 +0000
committerLukas Ertl <le@FreeBSD.org>2004-07-24 19:11:40 +0000
commitdb7edb31377b09aefe87d92aa463d99a3fa230d3 (patch)
treeef0f4395dea3f4adfe43e02b8dc3c561deab1389 /sbin
parent6db345b90e1874c8ab41e97a94d6b5b63409030e (diff)
Notes
Diffstat (limited to 'sbin')
-rw-r--r--sbin/vinum/commands.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/vinum/commands.c b/sbin/vinum/commands.c
index f333954e2a85..c0038e497909 100644
--- a/sbin/vinum/commands.c
+++ b/sbin/vinum/commands.c
@@ -153,8 +153,8 @@ vinum_read(int argc, char *argv[], char *arg0[])
buffer[0] = '\0'; /* make sure we don't pass anything */
if (argc > 0) { /* args specified, */
for (i = 0; i < argc; i++) { /* each drive name */
- strcat(buffer, argv[i]);
- strcat(buffer, " ");
+ strlcat(buffer, argv[i], sizeof(buffer));
+ strlcat(buffer, " ", sizeof(buffer));
}
}
ioctl(superdev, VINUM_READCONFIG, &buffer);