From 9febbc82471331cd37950a7f95485a7fd286cbc8 Mon Sep 17 00:00:00 2001 From: Jeff Hill Date: Fri, 10 Apr 1998 23:15:40 +0000 Subject: [PATCH] fixed really bad bug when clients use PV name with .xxxx in it --- src/cas/example/directoryService/directoryServer.cc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/cas/example/directoryService/directoryServer.cc b/src/cas/example/directoryService/directoryServer.cc index 8d261f763..891fbc50b 100644 --- a/src/cas/example/directoryService/directoryServer.cc +++ b/src/cas/example/directoryService/directoryServer.cc @@ -121,12 +121,13 @@ pvExistReturn directoryServer::pvExistTest // (for compatibility with EPICS // function block database). // - pStr = pPVName; - do { + pLastStr = pPVName; + pStr = strstr (pPVName, "."); + while (pStr) { pLastStr = pStr; + pStr += 1; pStr = strstr (pStr, "."); } - while (pStr); if (pLastStr==pPVName) { pPVE = this->stringResTbl.lookup(id);