confusing multiline messages on the mhttpd messages page
the mhttpd messages page was changed to show messages in reverse time order (newest first). This broke multi-line messages - they are now shown with all the lines in a reverse order. Multi-line messages were always confusing to read but now it's a complete dog's breakfast. K.O.
Comments (7)
-
-
-
assigned issue to
-
assigned issue to
-
Sure, now that this bug is on my radar I'll have a look. For future reference, you can CC someone on an issue with an @ before their user name: so instead of saying 'BM', say '@ Bill Mills' - then it might take me less than 3 months to notice :)
-
Oh weird, it's kind of buggy with user names with spaces in them - oh well.
-
Ok bug identified: the 256 character buffer in show_messages is overflow'd by long messages, because you're using strlcpy to fetch them. Some use of std:string might solve this, working on it now...
-
- changed status to resolved
fixes
#13→ <<cset 7f8fa40557eb>>
-
Alright, that's it, one day is all the extra-curricular endurance I have for fiddling with C - this patch works for me, but it follows the path-of-least-resistance example of the million-character malloc'ed buffer in the same function. Both these could be a lot smarter, but at least it no longer breaks.
- Log in to comment
That was changed by BM, so he should have a look at this.