grobian / carbon-c-relay

Enhanced C implementation of Carbon relay, aggregator and rewriter
Apache License 2.0
380 stars 107 forks source link

fix buffer ending #363

Closed msaf1980 closed 5 years ago

msaf1980 commented 5 years ago

Move setting bufffer terminate with '\0' away from defined ENABLE_TRACE block

grobian commented 5 years ago

I originally thought it would not be necessary because the length is used, and the ending is only set while debugging such that printf will stop (and not print garbage). Is that no longer the case now?