(svn r26499) -Codechange: replace strndup with stredup

This commit is contained in:
rubidium
2014-04-24 18:37:39 +00:00
parent 382ca0941f
commit 8960939b22
6 changed files with 30 additions and 43 deletions

View File

@@ -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) {