From 8ce06f2ed77c0b3303c3dca0f8cc510346c12eeb Mon Sep 17 00:00:00 2001 From: landley Date: Thu, 26 Oct 2006 12:04:17 -0400 Subject: Thinko fix. --- lib/getmountlist.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'lib/getmountlist.c') 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; } } -- cgit v1.2.3