From 032d822d508cf92ee01fd9c7368f5b00654d8976 Mon Sep 17 00:00:00 2001 From: hades Date: Fri, 8 Sep 2000 14:59:18 +0000 Subject: [PATCH] *** empty log message *** --- allParam/ca/caParam.c | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) 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; -- 2.43.0