mirror of
https://github.com/libretro/RetroArch
synced 2025-01-30 21:32:45 +00:00
cdrom: fix drive model string corruption
This commit is contained in:
parent
15d97dbaf3
commit
cd98fa2745
@ -1254,7 +1254,7 @@ struct string_list* cdrom_get_available_drives(void)
|
||||
if (strstr(dir_list->elems[i].data, "/dev/sg"))
|
||||
{
|
||||
char drive_model[32] = {0};
|
||||
char drive_string[32] = {0};
|
||||
char drive_string[33] = {0};
|
||||
union string_list_elem_attr attr = {0};
|
||||
int dev_index = 0;
|
||||
RFILE *file = filestream_open(dir_list->elems[i].data, RETRO_VFS_FILE_ACCESS_READ, 0);
|
||||
@ -1309,7 +1309,7 @@ struct string_list* cdrom_get_available_drives(void)
|
||||
else
|
||||
{
|
||||
char drive_model[32] = {0};
|
||||
char drive_string[64] = {0};
|
||||
char drive_string[33] = {0};
|
||||
union string_list_elem_attr attr = {0};
|
||||
RFILE *file = filestream_open(cdrom_path, RETRO_VFS_FILE_ACCESS_READ, 0);
|
||||
const libretro_vfs_implementation_file *stream;
|
||||
|
@ -4906,7 +4906,7 @@ bool menu_displaylist_ctl(enum menu_displaylist_ctl_state type,
|
||||
|
||||
for (i = 0; list && i < list->size; i++)
|
||||
{
|
||||
char drive_string[32] = {0};
|
||||
char drive_string[256] = {0};
|
||||
char drive[2] = {0};
|
||||
size_t pos = 0;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user