mirror of
https://github.com/amadvance/snapraid.git
synced 2026-11-29 11:26:48 -05:00
Convert Windows slash to C slash in the disk mount point.
This commit is contained in:
parent
ef1b061022
commit
cfbe9343ae
3 changed files with 25 additions and 1 deletions
2
elem.c
2
elem.c
|
|
@ -268,7 +268,7 @@ struct snapraid_disk* disk_alloc(const char* name, const char* dir)
|
|||
|
||||
disk = malloc_nofail(sizeof(struct snapraid_disk));
|
||||
pathcpy(disk->name, sizeof(disk->name), name);
|
||||
pathcpy(disk->dir, sizeof(disk->dir), dir);
|
||||
pathimport(disk->dir, sizeof(disk->dir), dir);
|
||||
|
||||
/* ensure that the dir terminate with "/" if it isn't empty */
|
||||
pathslash(disk->dir, sizeof(disk->dir));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue