g_utf8_validate the iTXt chunk, just to be sure

This commit is contained in:
Sven Neumann 2003-07-03 00:37:41 +00:00
parent 5f63d557f1
commit 532975823f
1 changed files with 1 additions and 1 deletions

View File

@ -735,7 +735,7 @@ load_image (const gchar *filename)
"UTF-8", "ISO-8859-1",
NULL, NULL, NULL);
}
else
else if (g_utf8_validate (text->text, -1, NULL))
{ /* iTXt */
comment = g_strdup (text->text);
}