We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 477634c commit 83e7df4Copy full SHA for 83e7df4
caPutLogApp/caPutJsonLogTask.cpp
@@ -831,7 +831,9 @@ bool CaPutJsonLogTask::compareValues(const LOGDATA *pLogData) {
831
case DBR_DOUBLE:
832
SINGLE_TYPE_COMPARE(double, sizeof(epicsFloat64));
833
case DBR_STRING:
834
- SINGLE_TYPE_COMPARE(string, MAX_STRING_SIZE);
+ // Doesn't mask "hidden" bytes (after NUL) for the sake of efficiency
835
+ // For string scalars, size == 1
836
+ return memcmp(pa->v_string, pb->v_string, size*MAX_STRING_SIZE);
837
default:
838
return 0;
839
}
0 commit comments