From 307e09ee34cce55c76014771afe50c0519a6d7ab Mon Sep 17 00:00:00 2001 From: Rob Bradford Date: Fri, 26 Jul 2013 16:29:40 +0100 Subject: [PATCH] compositor-drm: Use a format width parameter for the modeline sscanf --- src/compositor-drm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/compositor-drm.c b/src/compositor-drm.c index cf626ba..c7d6c04 100644 --- a/src/compositor-drm.c +++ b/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, -- 2.7.4