Skip to content

Commit

Permalink
Merge pull request #2805 from jsorg71/valgrind_font
Browse files Browse the repository at this point in the history
fix valgrind warning on font
  • Loading branch information
matt335672 authored Sep 26, 2023
2 parents fea7d80 + 433c05e commit 98ad496
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xrdp/xrdp_font.c
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ xrdp_font_create(struct xrdp_wm *wm, unsigned int dpi)
* that it can be added to the glyph cache if required */
f->width = 1;
f->height = 1;
f->data = (char *)g_malloc(1, 1);
f->data = (char *)g_malloc(FONT_DATASIZE(f), 1);
}
else if (s_check_rem(s, datasize))
{
Expand Down

0 comments on commit 98ad496

Please sign in to comment.