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:
Manish Singh 2005-05-20 00:08:50 +00:00 committed by Manish Singh
parent 88ffd5e84a
commit 65b2cdba10
2 changed files with 6 additions and 1 deletions

View File

@ -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

View File

@ -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);