mirror of
https://github.com/wiiu-env/libmocha.git
synced 2024-09-27 18:58:36 +02:00
Compare commits
3 Commits
49efa4c838
...
455ecf6997
Author | SHA1 | Date | |
---|---|---|---|
|
455ecf6997 | ||
|
1c896143fa | ||
|
06918bbf13 |
@ -1,4 +1,4 @@
|
|||||||
FROM ghcr.io/wiiu-env/devkitppc:20220806
|
FROM ghcr.io/wiiu-env/devkitppc:20230417
|
||||||
|
|
||||||
WORKDIR tmp_build
|
WORKDIR tmp_build
|
||||||
COPY . .
|
COPY . .
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
FROM ghcr.io/wiiu-env/devkitppc:20220806
|
FROM ghcr.io/wiiu-env/devkitppc:20230417
|
||||||
|
|
||||||
WORKDIR project
|
WORKDIR project
|
@ -31,7 +31,8 @@ int __fsa_dirnext(struct _reent *r,
|
|||||||
|
|
||||||
__fsa_translate_stat(&dir->entry_data.info, filestat);
|
__fsa_translate_stat(&dir->entry_data.info, filestat);
|
||||||
|
|
||||||
memset(filename, 0, NAME_MAX);
|
if (snprintf(filename, NAME_MAX, "%s", dir->entry_data.name) >= NAME_MAX) {
|
||||||
strncpy(filename, dir->entry_data.name, NAME_MAX - 1);
|
DEBUG_FUNCTION_LINE_ERR("snprintf filename result was truncated\n");
|
||||||
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@ -20,7 +20,7 @@ int __fsa_fstat(struct _reent *r,
|
|||||||
|
|
||||||
status = FSAGetStatFile(deviceData->clientHandle, file->fd, &fsStat);
|
status = FSAGetStatFile(deviceData->clientHandle, file->fd, &fsStat);
|
||||||
if (status < 0) {
|
if (status < 0) {
|
||||||
DEBUG_FUNCTION_LINE_ERR("FSARewindDir(0x%08X, 0x%08X, 0x%08X) (%s) failed: %s",
|
DEBUG_FUNCTION_LINE_ERR("FSAGetStatFile(0x%08X, 0x%08X, 0x%08X) (%s) failed: %s",
|
||||||
deviceData->clientHandle, file->fd, &fsStat, file->fullPath, FSAGetStatusStr(status));
|
deviceData->clientHandle, file->fd, &fsStat, file->fullPath, FSAGetStatusStr(status));
|
||||||
r->_errno = __fsa_translate_error(status);
|
r->_errno = __fsa_translate_error(status);
|
||||||
return -1;
|
return -1;
|
||||||
|
Loading…
Reference in New Issue
Block a user