FWIW, here's how I "solved" the problem when I found it. It's ugly, but
running in production and works.
char *htmlquoted(char *s)
{
/*
* This routine converts a plain string into an html-quoted string
*/
// Ulric was here: use several result buffers to overcome overwrit
The reason for making "result" static is to avoid memory leakage. Making
it auto means it won't be freed. As long as the htmlquoted function is
only used by cgi type programs, they will eventually exit and the memory
freed anyway. I don't know if the function is used by any of the long
running daem
Public bug reported:
Clicking the HISTORY button in Xymon returns the message "Cannot open
history file ". This is because the function historybutton in
lib/htmllog.c uses the function htmlquoted several times in an argument
list to a single fprintf call. The htmlquoted function (located in
lib/st