summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/note_list.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/note_list.c b/src/note_list.c
index b1527c2..638d631 100644
--- a/src/note_list.c
+++ b/src/note_list.c
@@ -175,7 +175,7 @@ int note_list_edit(note_list_t* list, char* editor, char* note_name) {
char path[256];
strcpy(path, list->path);
strcat(path, "/");
- strcat(path, note_name);
+ strcat(path, list->names[id]);
strcat(path, ".");
strcat(path, list->extension);
printf("%s\n", path);

Generated by cgit