From a9f37ef407d503a1bc2637a248c76b29cd39860c Mon Sep 17 00:00:00 2001 From: Jeff Hill Date: Wed, 29 Nov 1995 19:07:24 +0000 Subject: [PATCH] fixed bug where ca_array_get() of data type string returned only one string --- src/ca/service.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ca/service.c b/src/ca/service.c index 03fb7977c..b69927926 100644 --- a/src/ca/service.c +++ b/src/ca/service.c @@ -478,7 +478,8 @@ const struct in_addr *pnet_addr FALSE, piiu->curMsg.m_count); # else - if (piiu->curMsg.m_type == DBR_STRING) { + if (piiu->curMsg.m_type == DBR_STRING && + piiu->curMsg.m_count == 1u) { strcpy ((char *)pIOBlock->usr_arg, piiu->pCurData); }