PocketPuTTY.net Forum Index
PocketPuTTY.net
PuTTY in your pocket!
Reply to topic
Fix for 5 digit remote port numbers.
Petr


Joined: 21 Jun 2006
Posts: 7
Reply with quote
Originally submitted by AL.

AL wrote:
*** wince_dlg.c.orig Tue Jan 23 11:37:10 2007
--- wince_dlg.c Tue Jan 23 11:38:14 2007
***************
*** 261,267 ****
wchar_t wport[6];
wchar_t whost[lenof(cfg.host)];
GetDlgItemText(hwnd, IDC_CMB_HOST, whost, lenof(whost));
! GetDlgItemText(hwnd, IDC_PORTNO, wport, 5);
wcstombs(cfg.host, whost, lenof(cfg.host));
//strcpy(cfg.host, "10.166.195.142");
port = _ttoi(wport);
--- 261,267 ----
wchar_t wport[6];
wchar_t whost[lenof(cfg.host)];
GetDlgItemText(hwnd, IDC_CMB_HOST, whost, lenof(whost));
! GetDlgItemText(hwnd, IDC_PORTNO, wport, 6);
wcstombs(cfg.host, whost, lenof(cfg.host));
//strcpy(cfg.host, "10.166.195.142");
port = _ttoi(wport);

I compiled and tested this on my xv6700.
View user's profileSend private messageVisit poster's website
Fix for 5 digit remote port numbers.
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT + 1 Hour  
Page 1 of 1  

  
  
 Reply to topic