mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2026-05-05 11:08:14 +02:00
compositor-drm: Use a format width parameter for the modeline sscanf
This commit is contained in:
parent
581b3fd779
commit
307e09ee34
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Reference in a new issue