diff src/format_canon.c @ 49:ae627d150a6b

Fri Jun 3 20:02:23 2005 John Ellis <johne@verizon.net> * format_canon.c (canon_mknote_parse_convert): For serial number conversion, use the value of the data - not the value of the pointer. ##### Note: GQview CVS on sourceforge is not always up to date, please use ##### ##### an offical release when making enhancements and translation updates. #####
author gqview
date Sat, 04 Jun 2005 00:06:48 +0000
parents 6948407f52a5
children 3b83fb81afc4
line wrap: on
line diff
--- a/src/format_canon.c	Fri Jun 03 22:48:37 2005 +0000
+++ b/src/format_canon.c	Sat Jun 04 00:06:48 2005 +0000
@@ -813,7 +813,7 @@
 		gint l;
 		guint32 n;
 
-		n = (guint32)result->data;
+		n = (guint32)((guint32 *)(result->data))[0];
 		text = g_strdup_printf("%04X%05d", n & 0xffff0000 >> 8, n & 0x0000ffff);
 		l = strlen(text);
 		item = exif_item_new(marker.format, marker.tag, l, &marker);