diff options
Diffstat (limited to 'plugins/dbx-import/dbx-importer.c')
-rw-r--r-- | plugins/dbx-import/dbx-importer.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/dbx-import/dbx-importer.c b/plugins/dbx-import/dbx-importer.c index 47a2bb94bf..5fe0863c31 100644 --- a/plugins/dbx-import/dbx-importer.c +++ b/plugins/dbx-import/dbx-importer.c @@ -446,7 +446,8 @@ dbx_read_mail_body (DbxImporter *m, guint32 buflen = 0x200; guchar *buffer = g_malloc (buflen); - ftruncate (bodyfd, 0); + if (ftruncate (bodyfd, 0) == -1) + g_warning ("%s: Failed to truncate file: %s", G_STRFUNC, g_strerror (errno)); lseek (bodyfd, 0, SEEK_SET); while (offset) { |