Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d6b4ea86 authored by Dominique Martinet's avatar Dominique Martinet Committed by Chris Wilson
Browse files

drm/i915/tv: fix strncpy truncation warning

parent 91045034
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -1347,8 +1347,7 @@ intel_tv_get_modes(struct drm_connector *connector)
		mode_ptr = drm_mode_create(connector->dev);
		if (!mode_ptr)
			continue;
		strncpy(mode_ptr->name, input->name, DRM_DISPLAY_MODE_LEN);
		mode_ptr->name[DRM_DISPLAY_MODE_LEN - 1] = '\0';
		strlcpy(mode_ptr->name, input->name, DRM_DISPLAY_MODE_LEN);

		mode_ptr->hdisplay = hactive_s;
		mode_ptr->hsync_start = hactive_s + 1;