From: Ralph Corderoy Date: Mon, 24 Oct 2016 11:12:09 +0000 (+0100) Subject: mhical.c: display(): Replace memcpy() with struct assignment. X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/a264dcac1b2a14965fe4b877685791ca3339f988?ds=inline mhical.c: display(): Replace memcpy() with struct assignment. --- 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);