summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorraysan5 <[email protected]>2020-09-16 11:44:48 +0200
committerraysan5 <[email protected]>2020-09-16 11:44:48 +0200
commit11fbd49b73391919db01b6021438ac6f4270f0d0 (patch)
treeab2f46acfa843ddf239ba7e775f5c046e22b54d1 /src
parent43d82c1f21a2432d290e44bf223d2879f5af8837 (diff)
downloadraylib-11fbd49b73391919db01b6021438ac6f4270f0d0.tar.gz
raylib-11fbd49b73391919db01b6021438ac6f4270f0d0.zip
Avoid GETCWD() warning #1371
Diffstat (limited to 'src')
-rw-r--r--src/core.c4
1 files 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)