naemon/naemon-core — pull request #62 by catharsis (2014-05-15 15:20:20+00:00)
Title: commands: Always NUL terminate command buffer

Since we pass the buffer to the process_external_command1() routine
regardless of whether it seems well-formed or not, we better terminate
it regardless as well. If we don't, we're going to overread the buffer
sooner or later, causing not only this but also subsequent commands to
become garbled.

This fixes op5#8682.

Signed-off-by: Anton Lofgren