mirror of
https://github.com/linux-can/can-utils.git
synced 2026-08-06 06:49:53 +02:00
lib: fix seperator in snprintf_error_data
When multiple error flags are set, snprintf_error_data created a comma seperated textual presentation of it. Commitef853f5553("added return value check of snprintf to prevent possible buffer overflows detected by CodeQL") removed the increment of count, so the delimiter is no longer added. Fix this by incrementing count again. Fixes: Commitef853f5553("added return value check of snprintf to prevent possible buffer overflows detected by CodeQL") Signed-off-by: Jeroen Hofstee <jhofstee@victronenergy.com>
This commit is contained in: