Thinko fix.
authorlandley <landley@driftwood>
Thu, 26 Oct 2006 16:04:17 +0000 (12:04 -0400)
committerlandley <landley@driftwood>
Thu, 26 Oct 2006 16:04:17 +0000 (12:04 -0400)
lib/getmountlist.c

index 16b828b..91ba8c1 100644 (file)
@@ -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;
                }
        }