fixed error in non-UNICODE build
authorVictor Kirhenshtein <victor@netxms.org>
Tue, 30 Aug 2016 05:40:56 +0000 (08:40 +0300)
committerVictor Kirhenshtein <victor@netxms.org>
Tue, 30 Aug 2016 05:40:56 +0000 (08:40 +0300)
src/server/core/email.cpp

index 6463500..d34f144 100644 (file)
@@ -466,7 +466,7 @@ void NXCORE_EXPORTABLE PostMail(const TCHAR *pszRcpt, const TCHAR *pszSubject, c
        {
       nx_strncpy(envelope->rcptAddr, pszRcpt, MAX_RCPT_ADDR_LEN);
       nx_strncpy(envelope->subject, pszSubject, MAX_EMAIL_SUBJECT_LEN);
-      envelope->text = strdup(text);
+      envelope->text = strdup(pszText);
        }
 #endif
        envelope->retryCount = ConfigReadInt(_T("SMTPRetryCount"), 1);