mirror of
https://github.com/ekeeke/Genesis-Plus-GX.git
synced 2025-01-13 19:59:07 +01:00
[Gamecube/Wii] fixed compilation warning with gcc 10.2.x (devkitPPC r38)
This commit is contained in:
parent
605aa52baa
commit
a8e9c831e9
Binary file not shown.
Before Width: | Height: | Size: 3.7 MiB After Width: | Height: | Size: 3.8 MiB |
Binary file not shown.
Before Width: | Height: | Size: 3.9 MiB After Width: | Height: | Size: 4.0 MiB |
@ -3,7 +3,7 @@
|
||||
*
|
||||
* File loading support
|
||||
*
|
||||
* Copyright Eke-Eke (2008-2019)
|
||||
* Copyright Eke-Eke (2008-2021)
|
||||
*
|
||||
* Redistribution and use of this code or any derivative works are permitted
|
||||
* provided that the following conditions are met:
|
||||
@ -261,8 +261,8 @@ int UpdateDirectory(bool go_up, char *dirname)
|
||||
else
|
||||
{
|
||||
/* by default, simply append folder name */
|
||||
const char *path = (const char *)fileDir;
|
||||
snprintf(fileDir, MAXPATHLEN, "%s%s/", path, (const char *)dirname);
|
||||
strncat(fileDir, (const char *)dirname, MAXPATHLEN - strlen(fileDir) - 2);
|
||||
strcat(fileDir, "/");
|
||||
}
|
||||
|
||||
return 1;
|
||||
|
@ -3,7 +3,7 @@
|
||||
*
|
||||
* File loading support
|
||||
*
|
||||
* Copyright Eke-Eke (2008-2019)
|
||||
* Copyright Eke-Eke (2008-2021)
|
||||
*
|
||||
* Redistribution and use of this code or any derivative works are permitted
|
||||
* provided that the following conditions are met:
|
||||
|
Loading…
x
Reference in New Issue
Block a user