Commit 65b2cdba authored by Manish Singh's avatar Manish Singh Committed by Manish Singh
Browse files

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.
parent 88ffd5e8
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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment