diff options
Diffstat (limited to 'export.c')
-rw-r--r-- | export.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/export.c b/export.c index 3e0933d..dcd6b18 100644 --- a/export.c +++ b/export.c @@ -134,7 +134,8 @@ void exportData(struct List items) { path = uidPath(uid, "atom"); file = fopen(path, "w"); if (!file) err(EX_CANTCREAT, "%s", path); - error = atomEnvelope(file, &envelope) + error = atomEntryHead(file, &envelope) + || atomEntryTail(file) || fclose(file); if (error) err(EX_IOERR, "%s", path); |