From 08514679d56f6b9464d5eb0e5a6416aa1265936c Mon Sep 17 00:00:00 2001 From: markwkidd Date: Tue, 15 Nov 2016 15:47:18 -0500 Subject: [PATCH] Update xmb.c --- menu/drivers/xmb.c | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/menu/drivers/xmb.c b/menu/drivers/xmb.c index b990d47b70..d386d554fb 100644 --- a/menu/drivers/xmb.c +++ b/menu/drivers/xmb.c @@ -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 = '_'; }