}
static void
-scrollback_save (session *sess, char *text)
+scrollback_save (session *sess, char *text, time_t stamp)
{
char *buf;
- time_t stamp;
int len;
if (sess->type == SESS_SERVER && prefs.hex_gui_tab_server == 1)
return;
}
- stamp = time (0);
+ if (!stamp)
+ stamp = time(0);
if (sizeof (stamp) == 4) /* gcc will optimize one of these out */
buf = g_strdup_printf ("T %d ", (int) stamp);
else
}
log_write (sess, text, timestamp);
- scrollback_save (sess, text);
+ scrollback_save (sess, text, timestamp);
fe_print_text (sess, text, timestamp, FALSE);
g_free (text);
}