tweaks: use a string-copy function that checks for out-of-memory

This commit is contained in:
Benno Schulenberg
2019-10-13 12:38:46 +02:00
parent d256d0cbc0
commit 06bbc70d4a
3 changed files with 6 additions and 6 deletions

View File

@@ -2303,7 +2303,7 @@ char *real_dir_from_tilde(const char *path)
if (userdata != NULL)
tilded = mallocstrcpy(tilded, userdata->pw_dir);
#else
tilded = strdup("");
tilded = copy_of("");
#endif
}