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

dev
Rob Bradford 11 years ago committed by Kristian Høgsberg
parent 581b3fd779
commit 307e09ee34
  1. 2
      src/compositor-drm.c

@ -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,

Loading…
Cancel
Save