summaryrefslogtreecommitdiff
path: root/src/fileio.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2014-04-24 18:37:39 +0000
committerrubidium <rubidium@openttd.org>2014-04-24 18:37:39 +0000
commit8960939b22a474f42575b415f06c09eac7ff92fc (patch)
tree2748f648244486593c4874160fb10fc5218c9b84 /src/fileio.cpp
parent382ca0941fe53db8d01e145cff12bed91f51aaea (diff)
downloadopenttd-8960939b22a474f42575b415f06c09eac7ff92fc.tar.xz
(svn r26499) -Codechange: replace strndup with stredup
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) {