diff options
author | Aaron Ball <nullspoon@iohq.net> | 2015-02-26 18:48:09 -0700 |
---|---|---|
committer | Aaron Ball <nullspoon@iohq.net> | 2015-02-26 18:48:09 -0700 |
commit | 046fb682f28b35a78d07e760f5d6ba7235b55f37 (patch) | |
tree | 0618f9968271bd06ff93831f490fa5c52cc0eed7 | |
parent | 593cadff343af86b46f144a098b300662d9dc869 (diff) | |
download | noteless-046fb682f28b35a78d07e760f5d6ba7235b55f37.tar.gz noteless-046fb682f28b35a78d07e760f5d6ba7235b55f37.tar.xz |
Added name set in note_new constructor
The note name was just an empty array. This causes the name to be set on
instantiation.
-rw-r--r-- | src/note.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -21,6 +21,7 @@ */ void note_new(note_t* note, char* path) { strcpy(note->path, path); + basename(path, note->name); } |