mirror of https://github.com/GNOME/gimp.git
don't do pointer arithmetic with void *. Fixes bug #304701.
2005-05-19 Manish Singh <yosh@gimp.org> * plug-ins/jpeg/jpeg-save.c (save_image): don't do pointer arithmetic with void *. Fixes bug #304701.
This commit is contained in:
parent
88ffd5e84a
commit
65b2cdba10
|
@ -1,3 +1,8 @@
|
|||
2005-05-19 Manish Singh <yosh@gimp.org>
|
||||
|
||||
* plug-ins/jpeg/jpeg-save.c (save_image): don't do pointer arithmetic
|
||||
with void *. Fixes bug #304701.
|
||||
|
||||
2005-05-19 Manish Singh <yosh@gimp.org>
|
||||
|
||||
* app/config/test-config.c: Add casts to G_OBJECT() for
|
||||
|
|
|
@ -495,7 +495,7 @@ save_image (const gchar *filename,
|
|||
glong xmp_data_size;
|
||||
gchar *app_block;
|
||||
|
||||
xmp_data = gimp_parasite_data (parasite) + 10;
|
||||
xmp_data = ((const gchar *)gimp_parasite_data (parasite)) + 10;
|
||||
xmp_data_size = gimp_parasite_data_size (parasite) - 10;
|
||||
g_print ("jpeg-save: saving XMP packet (%d bytes)\n",
|
||||
(int) xmp_data_size);
|
||||
|
|
Loading…
Reference in New Issue