On Mon, Sep 30, 2019 at 08:51:51PM -0700, Steve Kargl wrote: > > Can you just zero memory and remove the explicit setting > of the terminating '\0'? > > q = buffer; > memset(q, 0, len); >
(may be dup) Upon further reading of the code, does buffer have 8*len+1 length? You would need to do memset(q,0,8*len+1). -- Steve