From 11fbd49b73391919db01b6021438ac6f4270f0d0 Mon Sep 17 00:00:00 2001 From: raysan5 Date: Wed, 16 Sep 2020 11:44:48 +0200 Subject: [PATCH] Avoid GETCWD() warning #1371 --- src/core.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core.c b/src/core.c index 1107d332..db7b6615 100644 --- a/src/core.c +++ b/src/core.c @@ -2059,9 +2059,9 @@ const char *GetWorkingDirectory(void) static char currentDir[MAX_FILEPATH_LENGTH]; memset(currentDir, 0, MAX_FILEPATH_LENGTH); - GETCWD(currentDir, MAX_FILEPATH_LENGTH - 1); + char *ptr = GETCWD(currentDir, MAX_FILEPATH_LENGTH - 1); - return currentDir; + return ptr; } // Get filenames in a directory path (max 512 files)