Skip to content

Commit

Permalink
Merge pull request #1323 from fastfetch-cli/dev
Browse files Browse the repository at this point in the history
Release: v2.27.1
  • Loading branch information
CarterLi authored Oct 6, 2024
2 parents 44ccc69 + bb94ac7 commit 4059bca
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# 2.27.1

Bugfixes:
* Fix invalid display name detection on GNOME, wayland (Display, Linux)

# 2.27.0

Changes:
Expand Down
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -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"
Expand Down Expand Up @@ -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)
include(CPack)
2 changes: 1 addition & 1 deletion src/detection/displayserver/linux/wayland/wayland.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 4059bca

Please sign in to comment.