From 94fbf76b2ea2769c9466fad7a932ae61b9a9c9fd Mon Sep 17 00:00:00 2001 From: Ian Barwick Date: Thu, 7 May 2020 14:37:57 +0900 Subject: [PATCH] be quiet, griping compiler! --- configfile.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/configfile.c b/configfile.c index e64cda86..e6d14256 100644 --- a/configfile.c +++ b/configfile.c @@ -2411,8 +2411,8 @@ tablespace_list_copy(t_configuration_options *original, t_configuration_options { TablespaceListCell *copy_cell = (TablespaceListCell *) pg_malloc0(sizeof(TablespaceListCell)); - strncpy(copy_cell->old_dir, orig_cell->old_dir, sizeof(orig_cell->old_dir)); - strncpy(copy_cell->new_dir, orig_cell->new_dir, sizeof(orig_cell->new_dir)); + strncpy(copy_cell->old_dir, orig_cell->old_dir, sizeof(copy_cell->old_dir)); + strncpy(copy_cell->new_dir, orig_cell->new_dir, sizeof(copy_cell->new_dir)); if (copy->tablespace_mapping.tail) copy->tablespace_mapping.tail->next = copy_cell;