aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlandley <landley@driftwood>2006-10-26 12:04:17 -0400
committerlandley <landley@driftwood>2006-10-26 12:04:17 -0400
commit8ce06f2ed77c0b3303c3dca0f8cc510346c12eeb (patch)
tree073b9debee818cc035805963e898b23d4df28f3c
parent00f87f150c3c9769e09e688bb9779947d64eb9d3 (diff)
downloadtoybox-8ce06f2ed77c0b3303c3dca0f8cc510346c12eeb.tar.gz
Thinko fix.
-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;
}
}