Skip to content

Commit

Permalink
8264923: PNGImageWriter.write_zTXt throws Exception with a typo
Browse files Browse the repository at this point in the history
Reviewed-by: aivanov, jdv, azvegint, kizune
  • Loading branch information
shipilev committed Apr 9, 2021
1 parent 1c6b113 commit 051c117
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -824,7 +824,7 @@ private void write_zTXt() throws IOException {
ChunkStream cs = new ChunkStream(PNGImageReader.zTXt_TYPE, stream);
String keyword = keywordIter.next();
if (keyword.length() > 79) {
throw new IIOException("tEXt keyword is longer than 79");
throw new IIOException("zTXt keyword is longer than 79");
}
cs.writeBytes(keyword);
cs.writeByte(0);
Expand Down

1 comment on commit 051c117

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.