In Windows convert backslash to forward slash.

This commit is contained in:
Andrea Mazzoleni 2011-05-03 23:28:03 +02:00
parent 61eb8e802f
commit 5a2e118c38
9 changed files with 25 additions and 21 deletions

2
elem.c
View file

@ -46,7 +46,7 @@ struct snapraid_filter* filter_alloc(int direction, const char* pattern)
char* last;
filter = malloc_nofail(sizeof(struct snapraid_filter));
pathcpy(filter->pattern, sizeof(filter->pattern), pattern);
pathimport(filter->pattern, sizeof(filter->pattern), pattern);
filter->direction = direction;
/* find first and last slash */