diff options
author | George Hazan <george.hazan@gmail.com> | 2013-07-10 13:54:28 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2013-07-10 13:54:28 +0000 |
commit | 3bcc4ebb3e1a43574fb934a80903feaa56642089 (patch) | |
tree | 254424be4b3f19e17a089bee94c66ce2acac0106 /protocols/JabberG/src/jabber_search.cpp | |
parent | d5d50b471277d5d69f59a8f29bf87201149ce191 (diff) |
obsolete helper removed
git-svn-id: http://svn.miranda-ng.org/main/trunk@5306 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/JabberG/src/jabber_search.cpp')
-rw-r--r-- | protocols/JabberG/src/jabber_search.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/protocols/JabberG/src/jabber_search.cpp b/protocols/JabberG/src/jabber_search.cpp index a02630dca3..409f0cc4df 100644 --- a/protocols/JabberG/src/jabber_search.cpp +++ b/protocols/JabberG/src/jabber_search.cpp @@ -540,9 +540,8 @@ static INT_PTR CALLBACK JabberSearchAdvancedDlgProc(HWND hwndDlg, UINT msg, WPAR SetWindowLongPtr(hwndDlg, GWLP_USERDATA, (LONG_PTR)dat);
/* Server Combo box */
- char szServerName[100];
- if (dat->ppro->JGetStaticString("Jud", NULL, szServerName, sizeof(szServerName)))
- strcpy(szServerName, "users.jabber.org");
+ ptrA jud(dat->ppro->getStringA("Jud"));
+ char *szServerName = (jud != NULL) ? jud : "users.jabber.org";
SetDlgItemTextA(hwndDlg,IDC_SERVER,szServerName);
SendDlgItemMessageA(hwndDlg,IDC_SERVER,CB_ADDSTRING,0,(LPARAM)szServerName);
//TO DO: Add Transports here
|