trace: handle open() return value and make sure string is terminated
authorDaniel Golle <daniel@makrotopia.org>
Mon, 23 Aug 2021 17:11:08 +0000 (18:11 +0100)
committerDaniel Golle <daniel@makrotopia.org>
Tue, 24 Aug 2021 17:32:01 +0000 (18:32 +0100)
commitd716cb5ca3c27e7bff2ab6f793aa4b827fdd3290
tree3975616d534f77db51a58b9da95d624393229886
parent51f1cd2366ebfc1f4ebbbfc819d36086ed3b5eb9
trace: handle open() return value and make sure string is terminated

Coverity CID: 1446154 Argument cannot be negative

Signed-off-by: Daniel Golle <daniel@makrotopia.org>
trace/trace.c