[Bug 1103428] Re: Xymon history page does not work

2013-01-29 Thread Ulric Eriksson
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

[Bug 1103428] Re: Xymon history page does not work

2013-01-29 Thread Ulric Eriksson
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

[Bug 1103428] [NEW] Xymon history page does not work

2013-01-23 Thread Ulric Eriksson
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