]> code.citadel.org Git - citadel.git/blobdiff - webcit/event.c
* localtime_r() fixes
[citadel.git] / webcit / event.c
index d7ed702a619aa9cc0e6431d1f49bfe3ba24fae32..8f99da03aba5903646ed897509a33a9e9cf139ea 100644 (file)
@@ -145,7 +145,7 @@ void display_edit_individual_event(icalcomponent *supplied_vevent, long msgnum)
                }
        }
        else {
-               memcpy(&tm_now, localtime(&now), sizeof(struct tm));
+               localtime_r(&now, &tm_now);
                tm_now.tm_year = atoi(bstr("year")) - 1900;
                tm_now.tm_mon = atoi(bstr("month")) - 1;
                tm_now.tm_mday = atoi(bstr("day"));