View | Details | Raw Unified | Return to bug 20780
Collapse All | Expand All

(-)htmldoc-1.8.27-orig/htmldoc/ps-pdf.cxx (-3 / +3 lines)
Lines 202-208 Link Here
202
      float	size;			/* Size of text in points */
202
      float	size;			/* Size of text in points */
203
      float	spacing;		/* Inter-character spacing */
203
      float	spacing;		/* Inter-character spacing */
204
      float	rgb[3];			/* Color of text */
204
      float	rgb[3];			/* Color of text */
205
      uchar	buffer[1];		/* String buffer */
205
      uchar	buffer[];		/* String buffer */
206
    }   	text;
206
    }   	text;
207
    image_t	*image;			/* Image pointer */
207
    image_t	*image;			/* Image pointer */
208
    float	box[3];			/* Box color */
208
    float	box[3];			/* Box color */
Lines 1060-1066 Link Here
1060
      bytes += sizeof(render_t);
1060
      bytes += sizeof(render_t);
1061
1061
1062
      if (r->type == RENDER_TEXT)
1062
      if (r->type == RENDER_TEXT)
1063
        bytes += strlen((char *)r->data.text.buffer);
1063
        bytes += strlen((char *)r->data.text.buffer)+1;
1064
    }
1064
    }
1065
  }
1065
  }
1066
1066
Lines 8590-8596 Link Here
8590
  if ((type != RENDER_TEXT && type != RENDER_LINK) || data == NULL)
8590
  if ((type != RENDER_TEXT && type != RENDER_LINK) || data == NULL)
8591
    r = (render_t *)calloc(sizeof(render_t), 1);
8591
    r = (render_t *)calloc(sizeof(render_t), 1);
8592
  else
8592
  else
8593
    r = (render_t *)calloc(sizeof(render_t) + strlen((char *)data), 1);
8593
    r = (render_t *)calloc(sizeof(render_t) + strlen((char *)data) + 1, 1);
8594
8594
8595
  if (r == NULL)
8595
  if (r == NULL)
8596
  {
8596
  {

Return to bug 20780