summaryrefslogtreecommitdiff
path: root/pango/pango-layout.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2021-03-18 23:25:19 -0400
committerMatthias Clasen <mclasen@redhat.com>2021-03-18 23:43:42 -0400
commit4c02b0ad0a9d8f5fc3b09ae7ae45abf142f99d23 (patch)
treece7256f0120ce6110d20c96f2f7db610f162861d /pango/pango-layout.c
parent69a7dde587b14038cb6009608ed03618f0b3cbfd (diff)
downloadpango-4c02b0ad0a9d8f5fc3b09ae7ae45abf142f99d23.tar.gz
Use g_memdup2()memdup2
The g_memdup() function is replaced by a safer version in newer versions of GLib.
Diffstat (limited to 'pango/pango-layout.c')
-rw-r--r--pango/pango-layout.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pango/pango-layout.c b/pango/pango-layout.c
index 5298647e..1f86150e 100644
--- a/pango/pango-layout.c
+++ b/pango/pango-layout.c
@@ -6186,8 +6186,8 @@ pango_layout_iter_copy (PangoLayoutIter *iter)
new->line_extents = NULL;
if (iter->line_extents != NULL)
{
- new->line_extents = g_memdup (iter->line_extents,
- iter->layout->line_count * sizeof (Extents));
+ new->line_extents = g_memdup2 (iter->line_extents,
+ iter->layout->line_count * sizeof (Extents));
}
new->line_index = iter->line_index;