Bugfix: suboptimal name mapping was leading to accidential deletes in md-workbench.

master
Julian M. Kunkel 2020-11-22 12:01:12 +00:00
parent b5891141d8
commit 02a47085ec
1 changed files with 5 additions and 0 deletions

View File

@ -86,9 +86,14 @@ static void def_file_name(s3_options_t * o, char * out_name, char const * path){
}else if(c >= 'A' && c <= 'Z'){
*out_name = *path + ('a' - 'A');
out_name++;
}else if(c == '/'){
*out_name = '_';
out_name++;
}
path++;
}
*out_name = '-';
out_name++;
*out_name = '\0';
}