]> diplodocus.org Git - nmh/blobdiff - uip/mhical.c
m_getfld: Shuffle `delim' assignments slightly.
[nmh] / uip / mhical.c
index 324d4b636abc367e967a12731163b7b97751b9f0..6a35bed51276ae6ff8498af20ce3a36a774e629c 100644 (file)
@@ -76,7 +76,7 @@ main (int argc, char *argv[]) {
 
     icaldebug = 0;  /* Global provided by bison (with name-prefix "ical"). */
 
-    if (nmh_init(argv[0], 1)) { return 1; }
+    if (nmh_init(argv[0], 2)) { return 1; }
 
     arguments = getarguments (invo_name, argc, argv, 1);
     argp = arguments;
@@ -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);