catalinii / minisatip

minisatip is an SATIP server for linux using local DVB-S2, DVB-C, DVB-T or ATSC cards
https://minisatip.org
324 stars 78 forks source link

Fix "_hexdump buffer size too small (114)" which has been spoiling hexdumps #1154

Closed Jalle19 closed 1 week ago

Jalle19 commented 1 week ago

Fixes this:

[26/06 23:35:00.478 AD4]: _hexdump buffer size too small (114)
Message repeated 6 times

The problem was that the allocated length for the buffer was based solely on the length of the input string, not taking into account that a single character of input can require a whole line of hexdump output if it spills over to a new line.