Update xmb.c

This commit is contained in:
markwkidd 2016-11-15 15:47:18 -05:00 committed by GitHub
parent 167a71635d
commit 08514679d5

View File

@ -863,36 +863,36 @@ static void xmb_update_thumbnail_path(void *data, unsigned i)
/* Scrub characters that are not cross-platform safe from 'display name' in playlist and replace with underscore */
char *scrub_char_pointer = 0;
*tmp = *entry.path;
tmp = strdup(entry.path);
while ((scrub_char_pointer = strchr (tmp, '&')) != NULL) {
while ((scrub_char_pointer = strchr(tmp, '&')) != NULL) {
*scrub_char_pointer = '_';
}
while ((scrub_char_pointer = strchr (tmp, '\\')) != NULL) {
while ((scrub_char_pointer = strchr(tmp, '\\')) != NULL) {
*scrub_char_pointer = '_';
}
while ((scrub_char_pointer = strchr (tmp, '/')) != NULL) {
while ((scrub_char_pointer = strchr(tmp, '/')) != NULL) {
*scrub_char_pointer = '_';
}
while ((scrub_char_pointer = strchr (tmp, '?')) != NULL) {
while ((scrub_char_pointer = strchr(tmp, '?')) != NULL) {
*scrub_char_pointer = '_';
}
while ((scrub_char_pointer = strchr (tmp, ':')) != NULL) {
while ((scrub_char_pointer = strchr(tmp, ':')) != NULL) {
*scrub_char_pointer = '_';
}
while ((scrub_char_pointer = strchr (tmp, '`')) != NULL) {
while ((scrub_char_pointer = strchr(tmp, '`')) != NULL) {
*scrub_char_pointer = '_';
}
while ((scrub_char_pointer = strchr (tmp, '<')) != NULL) {
while ((scrub_char_pointer = strchr(tmp, '<')) != NULL) {
*scrub_char_pointer = '_';
}
while ((scrub_char_pointer = strchr (tmp, '>')) != NULL) {
while ((scrub_char_pointer = strchr(tmp, '>')) != NULL) {
*scrub_char_pointer = '_';
}
while ((scrub_char_pointer = strchr (tmp, '*')) != NULL) {
while ((scrub_char_pointer = strchr(tmp, '*')) != NULL) {
*scrub_char_pointer = '_';
}
while ((scrub_char_pointer = strchr (tmp, '|')) != NULL) {
while ((scrub_char_pointer = strchr(tmp, '|')) != NULL) {
*scrub_char_pointer = '_';
}