[Gamecube/Wii] fixed compilation warning with gcc 10.2.x (devkitPPC r38)

This commit is contained in:
ekeeke 2021-03-28 09:31:26 +02:00
parent 605aa52baa
commit a8e9c831e9
4 changed files with 4 additions and 4 deletions

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

View File

@ -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;

View File

@ -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: