From 7277c336f7183fb8d2851096ab5ff78078a01eca Mon Sep 17 00:00:00 2001 From: Marty Kraimer Date: Fri, 1 Sep 1995 14:31:32 +0000 Subject: [PATCH] Fixed bug causing memory problem --- src/ca/access.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/ca/access.c b/src/ca/access.c index 517c19fc3..173077992 100644 --- a/src/ca/access.c +++ b/src/ca/access.c @@ -99,6 +99,9 @@ /************************************************************************/ /* * $Log$ + * Revision 1.76 1995/08/23 00:34:06 jhill + * fixed vxWorks specific SPARC data alignment problem + * * Revision 1.75 1995/08/22 00:15:19 jhill * Use 1.0/USEC_PER_SEC and not 1.0e-6 * Check for S_db_Pending when calling dbPutNotify() @@ -973,8 +976,8 @@ int epicsShareAPI ca_search_and_connect * also allocate enough for the channel name & paddr * block */ - size = sizeof(*chix) + strcnt + sizeof(struct db_addr); - size = CA_MESSAGE_ALIGN(size); + size = sizeof(*chix) + strcnt + sizeof(struct db_addr) + +CA_MESSAGE_ALIGN(1); *chixptr = chix = (chid) calloc(1,size); if (!chix){ return ECA_ALLOCMEM;