summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortangyaofang <tangyaofang6666@163.com>2019-06-21 14:57:51 +0800
committerCosmin Truta <ctruta@gmail.com>2022-11-16 01:51:34 +0200
commit9b5488054bc9fc750178e9b90ffea25e71d3348b (patch)
treedc1b25f332f1ed79a85170b282a3be9e9819f44a
parent04c016d79f97eb072c601787a4bc1b039a500025 (diff)
downloadlibpng-9b5488054bc9fc750178e9b90ffea25e71d3348b.tar.gz
Fix comments
Signed-off-by: Cosmin Truta <ctruta@gmail.com>
-rw-r--r--contrib/tools/png-fix-itxt.c2
-rw-r--r--pngwrite.c8
2 files changed, 5 insertions, 5 deletions
diff --git a/contrib/tools/png-fix-itxt.c b/contrib/tools/png-fix-itxt.c
index c7654c113..6dcd652dc 100644
--- a/contrib/tools/png-fix-itxt.c
+++ b/contrib/tools/png-fix-itxt.c
@@ -10,7 +10,7 @@
*
* Usage:
*
- * png-fix-itxt.exe < bad.png > good.png
+ * png-fix-itxt < bad.png > good.png
*
* Fixes a PNG file written with libpng-1.6.0 or 1.6.1 that has one or more
* uncompressed iTXt chunks. Assumes that the actual length is greater
diff --git a/pngwrite.c b/pngwrite.c
index 06c45d16a..4e58d776a 100644
--- a/pngwrite.c
+++ b/pngwrite.c
@@ -75,10 +75,10 @@ write_unknown_chunks(png_structrp png_ptr, png_const_inforp info_ptr,
* library. If you have a new chunk to add, make a function to write it,
* and put it in the correct location here. If you want the chunk written
* after the image data, put it in png_write_end(). I strongly encourage
- * you to supply a PNG_INFO_ flag, and check info_ptr->valid before writing
- * the chunk, as that will keep the code from breaking if you want to just
- * write a plain PNG file. If you have long comments, I suggest writing
- * them in png_write_end(), and compressing them.
+ * you to supply a PNG_INFO_<chunk> flag, and check info_ptr->valid before
+ * writing the chunk, as that will keep the code from breaking if you want
+ * to just write a plain PNG file. If you have long comments, I suggest
+ * writing them in png_write_end(), and compressing them.
*/
void PNGAPI
png_write_info_before_PLTE(png_structrp png_ptr, png_const_inforp info_ptr)