fix unix version of os_get_config_path to make it append a slash to $HOME

This commit is contained in:
jp9000 2013-12-23 19:04:41 -07:00
parent 9e9c2551ec
commit 123ca280a0
2 changed files with 2 additions and 2 deletions

View File

@ -98,7 +98,7 @@ char *os_get_config_path(const char *name)
struct dstr path;
dstr_init_copy(&path, path_ptr);
dstr_cat(&path, ".");
dstr_cat(&path, "/.");
dstr_cat(&path, name);
return path.array;
}

View File

@ -135,7 +135,7 @@ uint64_t os_gettime_ns(void)
return (uint64_t)time_val;
}
/* returns %appdata%/[name] on windows */
/* returns %appdata%\[name] on windows */
char *os_get_config_path(const char *name)
{
char *ptr;