wrong data path init fixed (thanks Herbert for reporting it)

This commit is contained in:
Frederic Culot 2008-08-18 07:30:07 +00:00
parent 879e2074fa
commit 5128fb04f0
2 changed files with 8 additions and 3 deletions

View File

@ -1,3 +1,8 @@
2008-08-18 Frederic Culot <frederic@culot.org>
* src/io.c (io_init): wrong data path init fixed (thanks Herbert
for reporting it)
2008-08-12 Frederic Culot <frederic@culot.org> 2008-08-12 Frederic Culot <frederic@culot.org>
* === Released 2.2_beta === * === Released 2.2_beta ===

View File

@ -1,4 +1,4 @@
/* $calcurse: io.c,v 1.32 2008/08/11 18:08:45 culot Exp $ */ /* $calcurse: io.c,v 1.33 2008/08/18 07:30:07 culot Exp $ */
/* /*
* Calcurse - text-based organizer * Calcurse - text-based organizer
@ -628,7 +628,7 @@ io_init (char *cfile, char *datadir)
{ {
home = "."; home = ".";
} }
snprintf (path_dir, BUFSIZ, "%s", home); snprintf (path_dir, BUFSIZ, "%s/" DIR_NAME, home);
snprintf (path_todo, BUFSIZ, "%s/" TODO_PATH, home); snprintf (path_todo, BUFSIZ, "%s/" TODO_PATH, home);
snprintf (path_conf, BUFSIZ, "%s/" CONF_PATH, home); snprintf (path_conf, BUFSIZ, "%s/" CONF_PATH, home);
snprintf (path_notes, BUFSIZ, "%s/" NOTES_DIR, home); snprintf (path_notes, BUFSIZ, "%s/" NOTES_DIR, home);