From 645b0883aa50f93d645e06700538fd729c3371c6 Mon Sep 17 00:00:00 2001 From: Jeff Hill Date: Sat, 17 Jun 2000 00:35:01 +0000 Subject: [PATCH] correctly calculate the number of bytes in the CA connect sequence --- src/ca/catime.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ca/catime.c b/src/ca/catime.c index dfdae01a8..c402144b7 100644 --- a/src/ca/catime.c +++ b/src/ca/catime.c @@ -513,7 +513,7 @@ int catime ( char *channelName, unsigned channelCount, enum appendNumberFlag app } pItemList[i].name[strsize]= '\0'; pItemList[i].count = 1; - nBytes += OCT_ROUND ( strlen ( pItemList[i].name ) ) + 2 * sizeof (caHdr); + nBytes += 2 * ( OCT_ROUND ( strlen ( pItemList[i].name ) ) + 2 * sizeof (caHdr) ); } printf ("search test\n");