[evolution] dbx-importer: Fix printf format warning



commit 2e46ae120517de1d171b7c2b138af1f4c84b4ae9
Author: David Woodhouse <David Woodhouse intel com>
Date:   Mon Aug 2 15:50:23 2010 +0100

    dbx-importer: Fix printf format warning

 plugins/dbx-import/dbx-importer.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/plugins/dbx-import/dbx-importer.c b/plugins/dbx-import/dbx-importer.c
index d09c97b..2af13a9 100644
--- a/plugins/dbx-import/dbx-importer.c
+++ b/plugins/dbx-import/dbx-importer.c
@@ -452,8 +452,8 @@ dbx_read_mail_body (DbxImporter *m, guint32 offset, gint bodyfd)
 				&m->base.error,
 				CAMEL_ERROR, CAMEL_ERROR_GENERIC,
 				"Failed to read mail data from DBX file "
-				"at offset %x",
-				offset + sizeof(hdr));
+				"at offset %lx",
+				(long)(offset + sizeof(hdr)));
 			return FALSE;
 		}
 		if (write(bodyfd, buffer, hdr.blocksize) != hdr.blocksize) {



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]