static struct new_value *
new_value_copy (struct new_value *nv)
{
- struct new_value *copy = g_memdup (nv, sizeof (*copy));
+ struct new_value *copy = g_memdup2 (nv, sizeof (*copy));
if (nv->type == NV_STRING)
copy->v.s = xstrdup (nv->v.s);
psppire_format_copy (gpointer boxed)
{
struct fmt_spec *format = boxed;
- return g_memdup (format, sizeof *format);
+ return g_memdup2 (format, sizeof *format);
}
static void
static struct old_value *
old_value_copy (struct old_value *ov)
{
- struct old_value *copy = g_memdup (ov, sizeof (*copy));
+ struct old_value *copy = g_memdup2 (ov, sizeof (*copy));
if (ov->type == OV_STRING)
copy->v.s = g_strdup (ov->v.s);