From: hades Date: Fri, 8 Sep 2000 14:59:18 +0000 (+0000) Subject: *** empty log message *** X-Git-Url: https://jspc29.x-matter.uni-frankfurt.de/git/?a=commitdiff_plain;h=032d822d508cf92ee01fd9c7368f5b00654d8976;p=daqdata.git *** empty log message *** --- diff --git a/allParam/ca/caParam.c b/allParam/ca/caParam.c index 4df3a8e..a0721b1 100644 --- a/allParam/ca/caParam.c +++ b/allParam/ca/caParam.c @@ -149,9 +149,17 @@ static void Param_copyToAllocMem(struct event_handler_args args) result->maxrows : args.count; if(args.type == DBR_STRING && args.status == ECA_NORMAL) { - for(i = 0 ; i < *(result->rows) ; i++) { - strcpy((result->val)[i], buffer[i]); +#if 1 + if(*(result->rows) == 1) { + strcpy(result->val[0], buffer); + } else { +#endif + for(i = 0 ; i < *(result->rows) ; i++) { + strcpy((result->val)[i], buffer[i]); + } +#if 1 } +#endif } else { Param_strerror((Param *) result->my, ca_message(args.status)); *(result->rows) = 0;