compositor-drm: Use a format width parameter for the modeline sscanf
This commit is contained in:
committed by
Kristian Høgsberg
parent
581b3fd779
commit
307e09ee34
@@ -1673,7 +1673,7 @@ parse_modeline(const char *s, drmModeModeInfo *mode)
|
|||||||
mode->vrefresh = 0;
|
mode->vrefresh = 0;
|
||||||
mode->flags = 0;
|
mode->flags = 0;
|
||||||
|
|
||||||
if (sscanf(s, "%f %hd %hd %hd %hd %hd %hd %hd %hd %s %s",
|
if (sscanf(s, "%f %hd %hd %hd %hd %hd %hd %hd %hd %15s %15s",
|
||||||
&fclock,
|
&fclock,
|
||||||
&mode->hdisplay,
|
&mode->hdisplay,
|
||||||
&mode->hsync_start,
|
&mode->hsync_start,
|
||||||
|
|||||||
Reference in New Issue
Block a user