summaryrefslogtreecommitdiff
path: root/pango/glyphstring.c
diff options
context:
space:
mode:
Diffstat (limited to 'pango/glyphstring.c')
-rw-r--r--pango/glyphstring.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/pango/glyphstring.c b/pango/glyphstring.c
index 649e7758..6c2338f1 100644
--- a/pango/glyphstring.c
+++ b/pango/glyphstring.c
@@ -112,15 +112,15 @@ pango_glyph_string_copy (PangoGlyphString *string)
if (string == NULL)
return NULL;
-
+
new_string = g_slice_new (PangoGlyphString);
*new_string = *string;
- new_string->glyphs = g_memdup (string->glyphs,
- string->space * sizeof (PangoGlyphInfo));
- new_string->log_clusters = g_memdup (string->log_clusters,
- string->space * sizeof (gint));
+ new_string->glyphs = g_memdup2 (string->glyphs,
+ string->space * sizeof (PangoGlyphInfo));
+ new_string->log_clusters = g_memdup2 (string->log_clusters,
+ string->space * sizeof (gint));
return new_string;
}