Compilation issues fixed
authorAlex Kirhenshtein <alk@netxms.org>
Mon, 3 Jun 2013 10:47:17 +0000 (10:47 +0000)
committerAlex Kirhenshtein <alk@netxms.org>
Mon, 3 Jun 2013 10:47:17 +0000 (10:47 +0000)
src/server/core/smclp.cpp
src/server/include/nxcore_smclp.h

index 7147567..66902d5 100644 (file)
@@ -49,9 +49,6 @@ bool SMCLP_Connection::connect(const TCHAR *login, const TCHAR *password)
 {\r
        bool success = false;\r
 \r
-   nx_strncpy(m_login, login, sizeof(m_login));\r
-   nx_strncpy(m_password, password, sizeof(m_login));\r
-\r
        if (m_conn != NULL)\r
    {\r
                delete m_conn;\r
@@ -61,11 +58,11 @@ bool SMCLP_Connection::connect(const TCHAR *login, const TCHAR *password)
    if (m_conn->connect(htonl(m_ip), m_port, m_timeout))\r
    {\r
 #ifdef UNICODE\r
-      char *_login = UTF8StringFromWideString(m_lo);\r
+      char *_login = UTF8StringFromWideString(login);\r
       char *_password = UTF8StringFromWideString(password);\r
 #else\r
-      char *_login = m_login;\r
-      char *_password = m_password;\r
+      char *_login = login;\r
+      char *_password = password;\r
 #endif\r
 \r
       if (m_conn->waitForText(":", m_timeout))\r
index 15ca20a..feb1196 100644 (file)
@@ -36,8 +36,6 @@ private:
        WORD m_port;\r
        DWORD m_timeout;\r
        TelnetConnection *m_conn;\r
-   TCHAR *m_login;\r
-   TCHAR *m_password;\r
 \r
 public:\r
        SMCLP_Connection(DWORD ip, WORD port);\r