saleae / modbus-analyzer

Saleae Modbus Analyzer
MIT License
10 stars 3 forks source link

Fix undefined behavior related to sprintf #1

Closed francois-berder closed 2 years ago

francois-berder commented 5 years ago

Source and destination must not overlap when using sprintf otherwise the behavior is undefined as specified in C99 standard 7.19.6.6

Signed-off-by: Francois Berder 18538310+francois-berder@users.noreply.github.com

Marcus10110 commented 2 years ago

Wow this has been sitting forever, sorry about that! In order to get around the conflicts, I've just recreated the changes here: https://github.com/saleae/modbus-analyzer/pull/5