CID 8076 and 2191 (both pointing out the same): Only the first sizeof(pointer)
bytes were initialized to 0 due to wrong use of sizeof(). git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39953 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -241,7 +241,7 @@ void
|
|||||||
edid_decode(edid1_info *edid, const edid1_raw *raw)
|
edid_decode(edid1_info *edid, const edid1_raw *raw)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
memset(edid, 0, sizeof(edid));
|
memset(edid, 0, sizeof(edid1_info));
|
||||||
|
|
||||||
decode_vendor(&edid->vendor, &raw->vendor);
|
decode_vendor(&edid->vendor, &raw->vendor);
|
||||||
decode_version(&edid->version, &raw->version);
|
decode_version(&edid->version, &raw->version);
|
||||||
|
|||||||
Reference in New Issue
Block a user