toxic: Fix get_user_config_dir().
core: Fix a possible buffer overflow using getself_name().

If the passed buffer is smaller than MAX_NAME_LENGTH then, you
will probably overflow it.
Merge pull request #447 from gladiac/fixes

Fixes