diff --git a/src/db/recGbl.c b/src/db/recGbl.c index 2d58c9dab..e0d2480df 100644 --- a/src/db/recGbl.c +++ b/src/db/recGbl.c @@ -303,7 +303,7 @@ void epicsShareAPI recGblTSELwasModified(struct link *plink) /*Note that the VAL value will not be used*/ pfieldname = strstr(ppv_link->pvname, ".TIME"); if (pfieldname) { - strcpy(pfieldname, ".VAL"); + *pfieldname = 0; ppv_link->pvlMask |= pvlOptTSELisTime; } } diff --git a/src/dbStatic/dbStaticLib.c b/src/dbStatic/dbStaticLib.c index 56d54928c..8334ef7f6 100644 --- a/src/dbStatic/dbStaticLib.c +++ b/src/dbStatic/dbStaticLib.c @@ -2041,9 +2041,11 @@ char * epicsShareAPI dbGetString(DBENTRY *pdbentry) else if(pvlMask&pvlOptCP) ppind=3; else if(pvlMask&pvlOptCPP) ppind=4; else ppind=0; - if(plink->value.pv_link.pvname) - strcpy(message,plink->value.pv_link.pvname); - else + if (plink->value.pv_link.pvname) { + strcpy(message, plink->value.pv_link.pvname); + if (pvlMask & pvlOptTSELisTime) + strcat(message, ".TIME"); + } else strcpy(message,""); strcat(message," "); strcat(message,ppstring[ppind]);