[libpng16] Imported from libpng-1.6.0beta27.tar

This commit is contained in:
Glenn Randers-Pehrson
2012-08-11 18:15:41 -05:00
parent 3744f94fd1
commit 0f08665bfb
15 changed files with 551 additions and 42 deletions

View File

@@ -4710,21 +4710,21 @@ standard_check_text(png_const_structp pp, png_const_textp tp,
if (tp->itxt_length != 0)
pos = safecat(msg, sizeof msg, pos, "iTXt length set, ");
if (tp->lang != NULL)
{
pos = safecat(msg, sizeof msg, pos, "iTXt language \"");
pos = safecat(msg, sizeof msg, pos, tp->lang);
pos = safecat(msg, sizeof msg, pos, "\", ");
}
if (tp->lang_key != NULL)
{
pos = safecat(msg, sizeof msg, pos, "iTXt keyword \"");
pos = safecat(msg, sizeof msg, pos, tp->lang_key);
pos = safecat(msg, sizeof msg, pos, "\", ");
}
if (pos > ok)
{
msg[pos-2] = '\0'; /* Remove the ", " at the end */