summaryrefslogtreecommitdiffstats
path: root/usr.sbin/sysinstall/misc.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/sysinstall/misc.c')
-rw-r--r--usr.sbin/sysinstall/misc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.sbin/sysinstall/misc.c b/usr.sbin/sysinstall/misc.c
index eb2c5c4..a055879 100644
--- a/usr.sbin/sysinstall/misc.c
+++ b/usr.sbin/sysinstall/misc.c
@@ -320,7 +320,7 @@ Mount(char *mountp, void *dev)
return DITEM_SUCCESS;
if (*((char *)dev) != '/') {
- sprintf(device, "%s/dev/%s", (char *)dev, RunningAsInit ? "/mnt" : "");
+ sprintf(device, "%s/dev/%s", RunningAsInit ? "/mnt" : "", (char *)dev);
sprintf(mountpoint, "%s%s", RunningAsInit ? "/mnt" : "", mountp);
}
else {
OpenPOWER on IntegriCloud