Malloc with 1 instead of sizeof(char) to avoid warnings