get rid of MAX_PATH_CHARACTERS in T_Page and T_Selector_Settings

strdup() the dynammicaly allocated filename and directory strings
This commit is contained in:
Thomas Bernard
2019-02-15 13:03:18 +01:00
parent 98811b6363
commit 79446a9c72
12 changed files with 236 additions and 190 deletions

View File

@@ -40,6 +40,8 @@ word * Unicode_strdup(const word * str)
size_t byte_size;
word * new_str;
if (str == NULL)
return NULL;
byte_size = Unicode_strlen(str) * 2 + 2;
new_str = malloc(byte_size);
if (new_str != NULL)