summaryrefslogtreecommitdiffstats
path: root/lib/libdisk/disk.c
diff options
context:
space:
mode:
authorsam <sam@FreeBSD.org>2002-10-17 18:23:21 +0000
committersam <sam@FreeBSD.org>2002-10-17 18:23:21 +0000
commit8680a53acea5bef887b679581a66f2290c3cd7cf (patch)
tree86784e2bbd1b1710d7986c2d5f9975887c984f49 /lib/libdisk/disk.c
parent18c52287ef50fd030cb89d7356fc083a0d36af4c (diff)
downloadFreeBSD-src-8680a53acea5bef887b679581a66f2290c3cd7cf.zip
FreeBSD-src-8680a53acea5bef887b679581a66f2290c3cd7cf.tar.gz
correct arg order to strlcpy/strlcat under #ifdef alpha
Diffstat (limited to 'lib/libdisk/disk.c')
-rw-r--r--lib/libdisk/disk.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libdisk/disk.c b/lib/libdisk/disk.c
index 7fbee2d..72bbe8a 100644
--- a/lib/libdisk/disk.c
+++ b/lib/libdisk/disk.c
@@ -325,8 +325,8 @@ Int_Open_Disk(const char *name, u_long size)
char pname[20];
int j,k;
- strlcpy(pname, sizeof(pname), _PATH_DEV);
- strlcat(pname, sizeof(pname), name);
+ strlcpy(pname, _PATH_DEV, sizeof(pname));
+ strlcat(pname, name, sizeof(pname));
j = open(pname, O_RDONLY);
if (j < 0) {
#ifdef DEBUG
OpenPOWER on IntegriCloud