diff --git a/src/db/dbAccess.c b/src/db/dbAccess.c index 26e8d7210..b10b62f9f 100644 --- a/src/db/dbAccess.c +++ b/src/db/dbAccess.c @@ -1136,7 +1136,7 @@ static long dbPutFieldLink(DBADDR *paddr, switch (dbrType) { case DBR_CHAR: case DBR_UCHAR: - if (pstring[nRequest] != '\0') + if (pstring[nRequest - 1] != '\0') return S_db_badDbrtype; break;