From 433c05eb369354e91014e5fbf13dd0e0c3875ce3 Mon Sep 17 00:00:00 2001 From: Jay Sorg Date: Mon, 25 Sep 2023 20:57:07 -0700 Subject: [PATCH] fix valgrind warning on font --- xrdp/xrdp_font.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xrdp/xrdp_font.c b/xrdp/xrdp_font.c index 1224338ec5..ceaadfd77f 100644 --- a/xrdp/xrdp_font.c +++ b/xrdp/xrdp_font.c @@ -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)) {