X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fui%2Fgui%2Fpsppire-dialog-action-recode.c;fp=src%2Fui%2Fgui%2Fpsppire-dialog-action-recode.c;h=0087e4403e8b14a62aae8a7feff8abb7c91c76f2;hb=b6604844de4aadfb63903b7e4df6bf0102eadfef;hp=5bbaf43df7bcc9c7adef3fa4f0af8fe00473ab7c;hpb=99fbdf32abded5630e8840a4f4449ea2d9230f26;p=pspp diff --git a/src/ui/gui/psppire-dialog-action-recode.c b/src/ui/gui/psppire-dialog-action-recode.c index 5bbaf43df7..0087e4403e 100644 --- a/src/ui/gui/psppire-dialog-action-recode.c +++ b/src/ui/gui/psppire-dialog-action-recode.c @@ -71,7 +71,7 @@ struct new_value 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);