edid-decode: safely terminate edid vector with 0
commit385c6cb09714593be3aa5b5d123e4e42bf4fbb05
authorHans Verkuil <hverkuil-cisco@xs4all.nl>
Fri, 3 Nov 2023 10:08:54 +0000 (3 11:08 +0100)
committerHans Verkuil <hverkuil-cisco@xs4all.nl>
Fri, 3 Nov 2023 10:08:54 +0000 (3 11:08 +0100)
tree26b8d9ce5017e8056ed9f6ffd2f802bfb5eb3420
parent1668825d337c3a9549eb558d14551a207c3a8c20
edid-decode: safely terminate edid vector with 0

We are using string functions for the EDID format parsing that
depend on 0-terminated sequences, so to be safe add a '\0'
after reading the EDID file.

Drop it again when it is processed as a binary file.

Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
edid-decode.cpp