From 1f6b90a4f919d3088d88bdaa07073a375e155963 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Mon, 10 Feb 2020 20:45:17 +0100 Subject: [PATCH] Prevent warnings --- wiiu/fs/fs_utils.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/wiiu/fs/fs_utils.c b/wiiu/fs/fs_utils.c index 5188970303..a474351ef7 100644 --- a/wiiu/fs/fs_utils.c +++ b/wiiu/fs/fs_utils.c @@ -175,16 +175,16 @@ int CreateSubfolder(const char * fullpath) return 1; { + char *ptr; char parentpath[strlen(dirnoslash)+2]; - size_t copied = strcpy(parentpath, dirnoslash); - char * ptr = strrchr(parentpath, '/'); + strcpy(parentpath, dirnoslash); + ptr = strrchr(parentpath, '/'); if (!ptr) { - struct stat filestat; /* Device root directory (must be with '/') */ - parentpath[copied] = '/'; - parentpath[copied+1] = '\0'; + struct stat filestat; + strcat(parentpath, "/"); if (stat(parentpath, &filestat) == 0) return 1;