1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 <2012> 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 | Index | 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 <2012> 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 |
<== Date ==> | <== Thread ==> |
---|
Subject: | Re: strange EPICS glitch |
From: | Eric Norum <[email protected]> |
To: | Mark Rivers <[email protected]> |
Cc: | "[email protected] talk" <[email protected]> |
Date: | Mon, 12 Nov 2012 12:57:56 -0800 |
Would this fix things? --- devAsynOctet.c 2012-06-25 15:20:07.000000000 -0700 +++ devAsynOctet.c.proposed 2012-11-12 12:55:29.000000000 -0800 @@ -657,17 +657,21 @@ static void callbackWfRead(asynUser *pasynUser) { devPvt *pdevPvt = (devPvt *)pasynUser->userPvt; waveformRecord *pwf = (waveformRecord *)pdevPvt->precord; size_t nBytesRead; asynStatus status; status = readIt(pasynUser,pwf->bptr,pwf->nelm,&nBytesRead); - if(status==asynSuccess) pwf->nord = nBytesRead; + if(status==asynSuccess) { + pwf->nord = nBytesRead; + if (pwf->nelm > pwf->nord) + *((char *)pwf->bptr + pwf->nord) = '\0'; + } finish((dbCommon *)pwf); } static long initWfWrite(waveformRecord *pwf) { asynStatus status; devPvt *pdevPvt; On Nov 12, 2012, at 12:43 PM, Mark Rivers <[email protected]> wrote: Hi Andrew,
--
Eric Norum [email protected] |