1
0
Fork 0
mirror of https://github.com/Atmosphere-NX/Atmosphere.git synced 2024-12-20 17:32:13 +00:00

loader; suppress gcc warning

This commit is contained in:
TuxSH 2019-03-19 21:29:31 +01:00
parent a5854afd2f
commit 7ddaad615b

View file

@ -121,8 +121,9 @@ Result ContentManagement::UnmountCode() {
void ContentManagement::TryMountHblNspOnSd() { void ContentManagement::TryMountHblNspOnSd() {
char path[FS_MAX_PATH + 1] = {0}; char path[FS_MAX_PATH + 1];
strncpy(path, g_hbl_sd_path, FS_MAX_PATH); strncpy(path, g_hbl_sd_path, FS_MAX_PATH);
path[FS_MAX_PATH] = 0;
for (unsigned int i = 0; i < FS_MAX_PATH && path[i] != '\x00'; i++) { for (unsigned int i = 0; i < FS_MAX_PATH && path[i] != '\x00'; i++) {
if (path[i] == '\\') { if (path[i] == '\\') {
path[i] = '/'; path[i] = '/';