Imported from libpng-1.4.0beta39.tar
diff --git a/pngerror.c b/pngerror.c
index 3924662..5245833 100644
--- a/pngerror.c
+++ b/pngerror.c
@@ -1,7 +1,7 @@
/* pngerror.c - stub functions for i/o and memory allocation
*
- * Last changed in libpng 1.4.0 [November 22, 2008]
+ * Last changed in libpng 1.4.0 [November 23, 2008]
* For conditions of distribution and use, see copyright notice in png.h
* Copyright (c) 1998-2008 Glenn Randers-Pehrson
* (Version 0.96 Copyright (c) 1996, 1997 Andreas Dilger)
@@ -74,7 +74,7 @@
msg[i] = error_message[i + 1];
/* In the example, "i" ends up being 5.
*/
- msg[i -1] = '\0';
+ msg[i - 1] = '\0';
error_message = msg;
}
/* msg, and error_message, now contain "nnnn \0". */
@@ -137,9 +137,9 @@
break;
}
}
- if (png_ptr != NULL && png_ptr->warning_fn != NULL)
- (*(png_ptr->warning_fn))(png_ptr, warning_message + offset);
}
+ if (png_ptr != NULL && png_ptr->warning_fn != NULL)
+ (*(png_ptr->warning_fn))(png_ptr, warning_message + offset);
else
png_default_warning(png_ptr, warning_message + offset);
}