Mercurial > hg > toybox
diff lib/getmountlist.c @ 5:4372fb5eb200
Thinko fix.
author | landley@driftwood |
---|---|
date | Thu, 26 Oct 2006 12:04:17 -0400 |
parents | 266a462ed18c |
children | 7806b8026931 |
line wrap: on
line diff
--- a/lib/getmountlist.c Wed Oct 25 18:38:37 2006 -0400 +++ b/lib/getmountlist.c Thu Oct 26 12:04:17 2006 -0400 @@ -30,8 +30,7 @@ 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; } }