Replace strpbrk with strchr - we only need to search for one char

This commit is contained in:
libretroadmin 2024-12-16 17:49:44 +01:00
parent 275c6c0267
commit eb08faa434

View File

@ -2145,7 +2145,7 @@ static void xmb_set_title(xmb_handle_t *xmb)
xmb->title_name_alt, sizeof(xmb->title_name_alt));
}
}
while ((scrub_char_ptr = strpbrk(xmb->title_name, "/")))
while ((scrub_char_ptr = strchr(xmb->title_name, '/')))
*scrub_char_ptr = ' ';
}