]> diplodocus.org Git - nmh/commitdiff
mhical.c: display(): Replace memcpy() with struct assignment.
authorRalph Corderoy <ralph@inputplus.co.uk>
Mon, 24 Oct 2016 11:12:09 +0000 (12:12 +0100)
committerRalph Corderoy <ralph@inputplus.co.uk>
Mon, 24 Oct 2016 11:12:09 +0000 (12:12 +0100)
uip/mhical.c

index 70f96dd..6a35bed 100644 (file)
@@ -665,7 +665,7 @@ display (FILE *file, contentline *clines, char *nfs) {
                 char *datetime;
                 contentline node_copy;
 
                 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);
                 node_copy.value = concat(node_copy.value, "T235959", NULL);
                 datetime = format_datetime (timezones, &node_copy);
                 c->c_text = datetime ? datetime : strdup(node_copy.value);