From a264dcac1b2a14965fe4b877685791ca3339f988 Mon Sep 17 00:00:00 2001 From: Ralph Corderoy Date: Mon, 24 Oct 2016 12:12:09 +0100 Subject: [PATCH] mhical.c: display(): Replace memcpy() with struct assignment. --- uip/mhical.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/uip/mhical.c b/uip/mhical.c index 70f96dd2..6a35bed5 100644 --- a/uip/mhical.c +++ b/uip/mhical.c @@ -665,7 +665,7 @@ display (FILE *file, contentline *clines, char *nfs) { char *datetime; contentline node_copy; - memcpy(&node_copy, node, sizeof node_copy); + node_copy = *node; node_copy.value = concat(node_copy.value, "T235959", NULL); datetime = format_datetime (timezones, &node_copy); c->c_text = datetime ? datetime : strdup(node_copy.value); -- 2.56.0