X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/f9eb8b9f41846f99a68dcbc8402a8e78d3b01e31..76347f46fb70138ad34af07b2ab00625600931f1:/unix/gtkdlg.c diff --git a/unix/gtkdlg.c b/unix/gtkdlg.c index 0f3666fa..2a293804 100644 --- a/unix/gtkdlg.c +++ b/unix/gtkdlg.c @@ -1976,7 +1976,8 @@ int do_config_box(const char *title, Config *cfg, int midsession, ctrlbox = ctrl_new_box(); setup_config_box(ctrlbox, &sl, midsession, cfg->protocol, protcfginfo); - unix_setup_config_box(ctrlbox, midsession, window); + unix_setup_config_box(ctrlbox, midsession); + gtk_setup_config_box(ctrlbox, midsession, window); gtk_window_set_title(GTK_WINDOW(window), title); hbox = gtk_hbox_new(FALSE, 4); @@ -2728,16 +2729,15 @@ void logevent_dlg(void *estuff, const char *string) struct eventlog_stuff *es = (struct eventlog_stuff *)estuff; char timebuf[40]; - time_t t; + struct tm tm; if (es->nevents >= es->negsize) { es->negsize += 64; es->events = sresize(es->events, es->negsize, char *); } - time(&t); - strftime(timebuf, sizeof(timebuf), "%Y-%m-%d %H:%M:%S\t", - localtime(&t)); + tm=ltime(); + strftime(timebuf, sizeof(timebuf), "%Y-%m-%d %H:%M:%S\t", &tm); es->events[es->nevents] = snewn(strlen(timebuf) + strlen(string) + 1, char); strcpy(es->events[es->nevents], timebuf);