mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-25 09:12:24 +00:00
Oops, that broke Telnet negotiation display. Fix tabstops in eventlog.
[originally from svn r957]
This commit is contained in:
parent
0d3ab7306e
commit
a680cef1b2
7
windlg.c
7
windlg.c
@ -49,6 +49,11 @@ static int CALLBACK LogProc (HWND hwnd, UINT msg,
|
||||
|
||||
switch (msg) {
|
||||
case WM_INITDIALOG:
|
||||
{
|
||||
static const int tabs[4] = {78, 108};
|
||||
SendDlgItemMessage (hwnd, IDN_LIST, LB_SETTABSTOPS, 2,
|
||||
(LPARAM) tabs);
|
||||
}
|
||||
for (i=0; i<nevents; i++)
|
||||
SendDlgItemMessage (hwnd, IDN_LIST, LB_ADDSTRING,
|
||||
0, (LPARAM)events[i]);
|
||||
@ -2048,7 +2053,7 @@ void logevent (char *string) {
|
||||
}
|
||||
|
||||
time(&t);
|
||||
strftime(timebuf, sizeof(timebuf), "%Y-%m-%d %H:%M:%S ", localtime(&t));
|
||||
strftime(timebuf, sizeof(timebuf), "%Y-%m-%d %H:%M:%S\t", localtime(&t));
|
||||
|
||||
events[nevents] = smalloc(strlen(timebuf)+strlen(string)+1);
|
||||
strcpy(events[nevents], timebuf);
|
||||
|
Loading…
Reference in New Issue
Block a user