Fix test for PV name termination.

This commit is contained in:
W. Eric Norum
2000-03-17 20:16:17 +00:00
parent 61bba9985b
commit 58ff396eef

View File

@@ -1854,7 +1854,7 @@ LOCAL int search_reply(
log_header ("empty PV name in UDP search request?", client, mp, 0);
return RSRV_OK;
}
if (pName+mp->m_postsize-1 != '\0') {
if (pName[mp->m_postsize-1] != '\0') {
log_header ("unterminated PV name in UDP search request?", client, mp, 0);
return RSRV_OK;
}