提交 05d25214 编写于 作者: I Imre Deak
上级 b074eae1
...@@ -1420,6 +1420,7 @@ intel_tv_get_modes(struct drm_connector *connector) ...@@ -1420,6 +1420,7 @@ intel_tv_get_modes(struct drm_connector *connector)
if (!mode_ptr) if (!mode_ptr)
continue; continue;
strncpy(mode_ptr->name, input->name, DRM_DISPLAY_MODE_LEN); strncpy(mode_ptr->name, input->name, DRM_DISPLAY_MODE_LEN);
mode_ptr->name[DRM_DISPLAY_MODE_LEN - 1] = '\0';
mode_ptr->hdisplay = hactive_s; mode_ptr->hdisplay = hactive_s;
mode_ptr->hsync_start = hactive_s + 1; mode_ptr->hsync_start = hactive_s + 1;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册