This seems to be the problem: If env HOME unset(not empty), getenv("HOME") return NULL pointer and then causes strncpy() error.
This seems to be the problem:
If env HOME unset(not empty), getenv("HOME") return NULL pointer and then causes strncpy() error.