diff --git a/CHANGELOG.md b/CHANGELOG.md index 3614d0370..1388995f6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,8 @@ +# 2.27.1 + +Bugfixes: +* Fix invalid display name detection on GNOME, wayland (Display, Linux) + # 2.27.0 Changes: diff --git a/CMakeLists.txt b/CMakeLists.txt index 065c24159..b30be6d45 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,7 +1,7 @@ cmake_minimum_required(VERSION 3.12.0) # target_link_libraries with OBJECT libs & project homepage url project(fastfetch - VERSION 2.27.0 + VERSION 2.27.1 LANGUAGES C DESCRIPTION "Fast neofetch-like system information tool" HOMEPAGE_URL "https://github.com/fastfetch-cli/fastfetch" @@ -1614,4 +1614,4 @@ fastfetch is a neofetch-like tool for fetching system information and displaying It is written mostly in C to achieve much better performance.\ ") -include(CPack) \ No newline at end of file +include(CPack) diff --git a/src/detection/displayserver/linux/wayland/wayland.c b/src/detection/displayserver/linux/wayland/wayland.c index 5a67f7887..457b334ee 100644 --- a/src/detection/displayserver/linux/wayland/wayland.c +++ b/src/detection/displayserver/linux/wayland/wayland.c @@ -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);