diff options
Diffstat (limited to 'src/note.c')
-rw-r--r-- | src/note.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; |