pull/521/merge
aravindmithra 7 days ago committed by GitHub
commit 2882fe170e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -2872,7 +2872,7 @@ IedConnection_getLogicalNodeDirectory(IedConnection self, IedClientError* error,
goto next_element; goto next_element;
int lnNameLen = (int)(fcPos - variableName); int lnNameLen = (int)(fcPos - variableName);
if (strlen(logicalNodeName) == lnNameLen){
if (strncmp(variableName, logicalNodeName, lnNameLen) == 0) if (strncmp(variableName, logicalNodeName, lnNameLen) == 0)
{ {
char* fcEndPos = strchr(fcPos + 1, '$'); char* fcEndPos = strchr(fcPos + 1, '$');
@ -2891,6 +2891,7 @@ IedConnection_getLogicalNodeDirectory(IedConnection self, IedClientError* error,
} }
} }
} }
}
next_element: next_element:
@ -3018,12 +3019,13 @@ IedConnection_getLogicalNodeVariables(IedConnection self, IedClientError* error,
if (fcPos) if (fcPos)
{ {
int lnNameLen = (int)(fcPos - variableName); int lnNameLen = (int)(fcPos - variableName);
if (strlen(logicalNodeName) == lnNameLen){
if (strncmp(variableName, logicalNodeName, lnNameLen) == 0) if (strncmp(variableName, logicalNodeName, lnNameLen) == 0)
{ {
LinkedList_add(lnDirectory, StringUtils_copyString(fcPos + 1)); LinkedList_add(lnDirectory, StringUtils_copyString(fcPos + 1));
} }
} }
}
variable = LinkedList_getNext(variable); variable = LinkedList_getNext(variable);
} }

Loading…
Cancel
Save