all repos — mgba @ ec30e1f8ecdc3dea2bc474fe5fc8f0f56f7d26b3

mGBA Game Boy Advance Emulator

Test: Fix testToPath breakage
Vicki Pfau vi@endrift.com
Tue, 28 Jul 2020 16:14:15 -0700
commit

ec30e1f8ecdc3dea2bc474fe5fc8f0f56f7d26b3

parent

5b2d797e6d8ebce898e0aa25f66d64b18fff4dc4

1 files changed, 4 insertions(+), 0 deletions(-)

jump to
M src/platform/test/cinema-main.csrc/platform/test/cinema-main.c

@@ -270,6 +270,10 @@ path[i] = testName[0];

++i; } } + if (i == PATH_MAX) { + --i; + } + path[i] = '\0'; } static void _loadConfigTree(struct Table* configTree, const char* testName) {