summaryrefslogtreecommitdiff
path: root/src/note.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/note.c')
-rw-r--r--src/note.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/note.c b/src/note.c
index 6b42ca4..325ee96 100644
--- a/src/note.c
+++ b/src/note.c
@@ -1,5 +1,5 @@
/**
- * Copyright (C) 2016 Aaron Ball <nullspoon@oper.io>
+ * Copyright (C) 2021 Aaron Ball <nullspoon@oper.io>
*
* Noteless is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -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