Fix ~/.local/share

This commit is contained in:
Bruce Hill 2024-09-15 18:18:42 -04:00
parent 60cc8f5b3d
commit 6b8ceccdab

2
ask.c
View File

@ -493,7 +493,7 @@ int main(int argc, char *argv[])
char *xdg_data = getenv("XDG_DATA_HOME");
if (xdg_data == NULL) {
strcpy(histpath, getenv("HOME"));
strcat(histpath, "/.local/.share/ask/");
strcat(histpath, "/.local/share/ask/");
} else {
strcpy(histpath, xdg_data);
strcat(histpath, "/ask/");