Imported from libpng-1.4.0beta17.tar
diff --git a/pngwutil.c b/pngwutil.c
index 390d1c5..16dfd82 100644
--- a/pngwutil.c
+++ b/pngwutil.c
@@ -784,8 +784,11 @@
profile_len = 0;
if (profile_len > 3)
- embedded_profile_len = ((*(profile ))<<24) | ((*(profile+1))<<16) |
- ((*(profile+2))<< 8) | ((*(profile+3)) );
+ embedded_profile_len =
+ ((*( (png_bytep)profile ))<<24) |
+ ((*( (png_bytep)profile+1))<<16) |
+ ((*( (png_bytep)profile+2))<< 8) |
+ ((*( (png_bytep)profile+3)) );
if (profile_len < embedded_profile_len)
{
@@ -1337,7 +1340,7 @@
if (key_len > 79)
{
png_warning(png_ptr, "keyword length must be 1 - 79 characters");
- new_key[79] = '\0';
+ (*new_key)[79] = '\0';
key_len = 79;
}