From c5eb2e10702faa89cccc8c10ae842f6bb3d13289 Mon Sep 17 00:00:00 2001 From: Aurora Date: Fri, 14 Oct 2016 02:06:01 +0200 Subject: [PATCH] Not needed --- source/patches.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/source/patches.c b/source/patches.c index 992c089..39299fa 100644 --- a/source/patches.c +++ b/source/patches.c @@ -141,13 +141,12 @@ u32 patchFirmlaunches(u8 *pos, u32 size, u32 process9MemAddr, bool isSdMode) if(pathSize > 5 && pathSize < 56 && path[0] == '/' && memcmp(&path[pathSize - 4], ".bin", 4) == 0) { - u16 finalPath[pathSize + 1]; + u16 finalPath[pathSize]; for(u32 i = 0; i < pathSize; i++) finalPath[i] = (u16)path[i]; - finalPath[pathSize] = 0; u8 *pos_path = memsearch(off, isSdMode ? u"sd" : u"na", reboot_bin_size, 4) + 0xA; - memcpy(pos_path, finalPath, (pathSize + 1) * 2); + memcpy(pos_path, finalPath, pathSize * 2); } } }