compositor-drm: Use a format width parameter for the modeline sscanf

This commit is contained in:
Rob Bradford 2013-07-26 16:29:40 +01:00 committed by Kristian Høgsberg
parent 581b3fd779
commit 307e09ee34

View File

@ -1673,7 +1673,7 @@ parse_modeline(const char *s, drmModeModeInfo *mode)
mode->vrefresh = 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,
&mode->hdisplay,
&mode->hsync_start,