mirror of
https://github.com/OpenTTD/OpenTTD
synced 2026-01-17 17:32:45 +01:00
(svn r26499) -Codechange: replace strndup with stredup
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user