mirror of
https://github.com/mauiaaron/apple2.git
synced 2024-06-24 11:29:33 +00:00
Bugfix disk selection on Linux desktop
This commit is contained in:
parent
f28b708449
commit
c47afc4ccb
|
@ -645,8 +645,8 @@ void c_interface_select_diskette( int drive )
|
|||
}
|
||||
else if (strcmp(".", namelist[curpos]->d_name))
|
||||
{
|
||||
snprintf(disk_path + len, MIN(0, PATH_MAX-len), "/%s",
|
||||
namelist[curpos]->d_name);
|
||||
size_t ent_len = strlen(namelist[curpos]->d_name)+1+1; // +1 for dir sep +1 for \0
|
||||
snprintf(disk_path + len, MIN(ent_len, PATH_MAX-(len+ent_len)), "/%s", namelist[curpos]->d_name);
|
||||
}
|
||||
|
||||
nextdir = true;
|
||||
|
|
Loading…
Reference in New Issue
Block a user