tweaks: use a string-copy function that checks for out-of-memory
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user