Fix garbage in command output

Ethan Galstad nagios at nagios.org
Thu Jan 24 13:42:02 CET 2008


Krzysztof Oledzki wrote:
> Hello,
> 
> This patch properly terminates the "output" string so both returned and
> logged (syslog) values are correct.
> 
> The bug was introduced in nrpe-2.8 (multiline plugin output) -
> previously the child process was able to return a properly termintaed
> c-string but now, when fread() is used instead of fgets(), the received
> string (output) is not terminated and my_system() returns and logs some
> kind of garbage.
> 
> I also decided to remove two unused variables.
> 
> Best regards,
> 
>             Krzysztof Olędzki
> 

Thanks Krzysztof!  Patch will be in CVS momentarily...


Ethan Galstad
Nagios Developer
___
Email: nagios at nagios.org
Web:   www.nagios.org

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/




More information about the Developers mailing list