fix unix version of os_get_config_path to make it append a slash to $HOME
This commit is contained in:
parent
9e9c2551ec
commit
123ca280a0
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user