Skip to content

Commit

Permalink
Display (Linux): clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
CarterLi committed Dec 13, 2024
1 parent 373e288 commit bfaa73a
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/detection/displayserver/linux/wayland/kde-output.c
Original file line number Diff line number Diff line change
Expand Up @@ -126,10 +126,7 @@ static void waylandKdeNameListener(void* data, FF_MAYBE_UNUSED struct kde_output
WaylandDisplay* display = data;
display->type = ffdsGetDisplayType(name);
// As display->id is used as an internal identifier, we don't need it to be NUL terminated
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wstringop-truncation"
strncpy((char*) &display->id, name, sizeof(display->id));
#pragma GCC diagnostic pop

ffStrbufAppendS(&display->name, name);
}
Expand Down

0 comments on commit bfaa73a

Please sign in to comment.