summaryrefslogtreecommitdiff
path: root/src/note.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/note.c')
-rw-r--r--src/note.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/note.c b/src/note.c
index 6b42ca4..2f2d2d3 100644
--- a/src/note.c
+++ b/src/note.c
@@ -21,7 +21,7 @@
*/
void note_new(note* n, char* path) {
strcpy(n->path, path);
- basename(path, n->name);
+ strcpy(n->name, basename(path));
// Get file stats
struct stat s;

Generated by cgit