mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-09-13 02:42:09 +02:00
DisplayServer (Linux): fix invalid display name detection
This commit is contained in:
@@ -109,7 +109,7 @@ static bool matchDrmConnector(const char* connName, WaylandDisplay* wldata)
|
||||
|
||||
uint8_t edidData[512];
|
||||
ssize_t edidLength = ffReadFileData(path.chars, sizeof(edidData), edidData);
|
||||
if (edidLength <= 0 || edidLength % 128 != 0)
|
||||
if (edidLength > 0 && edidLength % 128 == 0)
|
||||
{
|
||||
ffEdidGetName(edidData, &wldata->edidName);
|
||||
ffEdidGetHdrCompatible(edidData, (uint32_t) edidLength);
|
||||
|
||||
Reference in New Issue
Block a user