summaryrefslogtreecommitdiff
path: root/src/fileio.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/fileio.cpp')
-rw-r--r--src/fileio.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fileio.cpp b/src/fileio.cpp
index da49f47e5..49da7b9b4 100644
--- a/src/fileio.cpp
+++ b/src/fileio.cpp
@@ -1107,7 +1107,7 @@ void DetermineBasePaths(const char *exe)
* unvalidated data we rather not want internally. */
const char *homedir = getenv("HOME");
if (homedir != NULL) {
- homedir = strndup(homedir, MAX_PATH);
+ homedir = stredup(homedir);
}
if (homedir == NULL) {