From 2779547dcb49ff3630ca6412f8d3ef1d15aff393 Mon Sep 17 00:00:00 2001 From: Jeff Hill Date: Wed, 16 Apr 2003 20:34:51 +0000 Subject: [PATCH] optimized string out --- src/ca/comBuf.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ca/comBuf.h b/src/ca/comBuf.h index b74da3925..d99132a14 100644 --- a/src/ca/comBuf.h +++ b/src/ca/comBuf.h @@ -330,7 +330,7 @@ inline unsigned comBuf::push ( const epicsOldString * pValue, unsigned nElem ) nBytes = nElem * sizeof ( *pValue ); } memcpy ( &this->buf[ index ], pValue, nBytes ); - this->nextWriteIndex += nBytes; + this->nextWriteIndex = index + nBytes; return nElem; }