diff options
author | rubidium <rubidium@openttd.org> | 2014-04-24 18:37:39 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2014-04-24 18:37:39 +0000 |
commit | 8960939b22a474f42575b415f06c09eac7ff92fc (patch) | |
tree | 2748f648244486593c4874160fb10fc5218c9b84 /src/fileio.cpp | |
parent | 382ca0941fe53db8d01e145cff12bed91f51aaea (diff) | |
download | openttd-8960939b22a474f42575b415f06c09eac7ff92fc.tar.xz |
(svn r26499) -Codechange: replace strndup with stredup
Diffstat (limited to 'src/fileio.cpp')
-rw-r--r-- | src/fileio.cpp | 2 |
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) { |