diff --git a/libpng-manual.txt b/libpng-manual.txt index a8e704d7d..99508a545 100644 --- a/libpng-manual.txt +++ b/libpng-manual.txt @@ -4257,8 +4257,8 @@ parameters as follows: void user_warning_fn(png_structp png_ptr, png_const_charp warning_msg); -Then, within your error_fn, you can retrieve the error_ptr if -you need it, by calling +Then, within your user_error_fn or user_warning_fn, you can retrieve +the error_ptr if you need it, by calling png_voidp error_ptr = png_get_error_ptr(png_ptr); diff --git a/libpng.3 b/libpng.3 index ed3da7d58..88e170052 100644 --- a/libpng.3 +++ b/libpng.3 @@ -4767,8 +4767,8 @@ parameters as follows: void user_warning_fn(png_structp png_ptr, png_const_charp warning_msg); -Then, within your error_fn, you can retrieve the error_ptr if -you need it, by calling +Then, within your user_error_fn or user_warning_fn, you can retrieve +the error_ptr if you need it, by calling png_voidp error_ptr = png_get_error_ptr(png_ptr);