[libpng17] Committed pngvalid.c omitted from previous commit; fix trivial typos
diff --git a/contrib/libtests/pngvalid.c b/contrib/libtests/pngvalid.c
index 8852f87..e64415d 100644
--- a/contrib/libtests/pngvalid.c
+++ b/contrib/libtests/pngvalid.c
@@ -5848,8 +5848,9 @@
    /* If png_set_filler is in action then fake the output color type to include
     * an alpha channel where appropriate.
     */
-   if (dp->output_bit_depth >= 8 && (dp->output_colour_type == PNG_COLOR_TYPE_RGB ||
-       dp->output_colour_type == PNG_COLOR_TYPE_GRAY) && dp->this.filler)
+   if (dp->output_bit_depth >= 8 &&
+       (dp->output_colour_type == PNG_COLOR_TYPE_RGB ||
+        dp->output_colour_type == PNG_COLOR_TYPE_GRAY) && dp->this.filler)
        dp->output_colour_type |= 4;
 
    /* Validate the combination of colour type and bit depth that we are getting
diff --git a/pngerror.c b/pngerror.c
index 8f84bfa..43e26eb 100644
--- a/pngerror.c
+++ b/pngerror.c
@@ -1151,7 +1151,7 @@
 }
 
 #ifdef PNG_RANGE_CHECK_SUPPORTED
-/* The character/byte checking APIs. These do their own calls to png_assert
+/* The character/byte checking APIs. These do their own calls to png_affirm
  * because the caller provides the position.
  */
 char /* PRIVATE */
diff --git a/pngpriv.h b/pngpriv.h
index 1259176..8e35c71 100644
--- a/pngpriv.h
+++ b/pngpriv.h
@@ -911,7 +911,7 @@
  *
  * All of these functions must be declared with PNG_INTERNAL_FUNCTION.
  */
-/* Assert handling */
+/* Affirm handling */
 PNG_INTERNAL_FUNCTION(void, png_affirm,(png_const_structrp png_ptr,
     param_deb(png_const_charp condition) unsigned int position), PNG_NORETURN);