aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/getmountlist.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/getmountlist.c b/lib/getmountlist.c
index 16b828bf..91ba8c10 100644
--- a/lib/getmountlist.c
+++ b/lib/getmountlist.c
@@ -30,8 +30,7 @@ struct mtab_list *getmountlist(int die)
mt->dir = mt->type + strlen(mt->type) + 1;
strcpy(mt->dir, me.mnt_dir);
mt->device = mt->dir + strlen(mt->dir) + 1;
- mt->device = ++str;
- strcpy(str, me.mnt_fsname);
+ strcpy(mt->device, me.mnt_fsname);
mtlist = mt;
}
}