fixed compilation error in DB/2 subagent
authorVictor Kirhenshtein <victor@netxms.org>
Mon, 27 Nov 2017 09:43:49 +0000 (11:43 +0200)
committerVictor Kirhenshtein <victor@netxms.org>
Mon, 27 Nov 2017 09:43:49 +0000 (11:43 +0200)
src/agent/subagents/db2/db2_subagent.cpp

index b027fd4..0c64a63 100644 (file)
@@ -588,7 +588,7 @@ static BOOL DB2Init(Config *config)
       {
          ConfigEntry *entry = db2SubXmlSubEntries->get(i);
          _tcscpy(entryName, _T("db2sub/"));
-         _tcscat_s(entryName, STR_MAX, entry->getName());
+         _tcslcat(entryName, entry->getName(), STR_MAX);
 
          const PDB2_INFO db2Info = GetConfigs(config, entry, entryName);
          if (db2Info == NULL)