summaryrefslogtreecommitdiff
path: root/graphics/xv/files/patch-xvpng.c
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/xv/files/patch-xvpng.c')
-rw-r--r--graphics/xv/files/patch-xvpng.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/graphics/xv/files/patch-xvpng.c b/graphics/xv/files/patch-xvpng.c
index 5a67f9a6f858..82076f94ced5 100644
--- a/graphics/xv/files/patch-xvpng.c
+++ b/graphics/xv/files/patch-xvpng.c
@@ -480,8 +480,8 @@
- commentsize += strlen(info_ptr->text[i].key) + 1 +
- info_ptr->text[i].text_length + 2;
+ for (i = 0; i < _num_text; i++)
-+ commentsize += strlen(_text[i].key) + 1 +
-+ _text[i].text_length + 2;
++ commentsize += strlen(_text[i].key) + 2 +
++ _text[i].text_length + _text[i].itxt_length + 1;
if ((pinfo->comment = malloc(commentsize)) == NULL) {
png_warning(png_ptr,"can't allocate comment string");