From: Ben Pfaff Date: Sat, 9 Jan 2021 05:24:13 +0000 (-0800) Subject: pivot-table: Fix cut and paste error in pivot_value_clone(). X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b96adcc0447f11136edb0a4e957fb6bd5b3c0d93;p=pspp pivot-table: Fix cut and paste error in pivot_value_clone(). --- diff --git a/src/output/pivot-table.c b/src/output/pivot-table.c index b3d6c399da..5bcc6dc7cc 100644 --- a/src/output/pivot-table.c +++ b/src/output/pivot-table.c @@ -2448,7 +2448,7 @@ pivot_value_clone (const struct pivot_value *old) font_style_copy (NULL, new->font_style, old->font_style); } if (old->cell_style) - new->font_style = xmemdup (old->font_style, sizeof *new->font_style); + new->cell_style = xmemdup (old->cell_style, sizeof *new->cell_style); if (old->n_subscripts) { new->subscripts = xnmalloc (old->n_subscripts, sizeof *new->subscripts);