summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/note.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/note.c b/src/note.c
index 372f64b..97af826 100644
--- a/src/note.c
+++ b/src/note.c
@@ -21,6 +21,7 @@
*/
void note_new(note_t* note, char* path) {
strcpy(note->path, path);
+ basename(path, note->name);
}

Generated by cgit