Skip to content

Commit

Permalink
fix valgrind warning on font
Browse files Browse the repository at this point in the history
  • Loading branch information
jsorg71 committed Sep 26, 2023
1 parent bfdcdb0 commit 433c05e
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 433c05e

Please sign in to comment.