aboutsummaryrefslogtreecommitdiffstats
path: root/src/io.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/io.c')
-rw-r--r--src/io.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/io.c b/src/io.c
index b461b2b..31b4097 100644
--- a/src/io.c
+++ b/src/io.c
@@ -1226,10 +1226,8 @@ io_load_app (void)
c = getc (data_file);
if (c == '>')
{
- (void)fgets (note, NOTESIZ + 1, data_file);
- note[NOTESIZ] = '\0';
+ note_read (note, data_file);
notep = note;
- getc (data_file);
}
else
{
@@ -1324,11 +1322,7 @@ io_load_todo (void)
/* Now read the attached note, if any. */
c = getc (data_file);
if (c == '>')
- {
- (void)fgets (note, NOTESIZ + 1, data_file);
- note[NOTESIZ] = '\0';
- getc (data_file);
- }
+ note_read (note, data_file);
else
note[0] = '\0';
/* Then read todo description. */