From 9e986ae175ff5eb24d239a42af8a80b5efcd3f74 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Tue, 3 Jun 2014 08:20:47 +0200 Subject: add missing % in an sprintf, why did the compiler not warn us? MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/lib/gamma-linux-drm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/gamma-linux-drm.c b/src/lib/gamma-linux-drm.c index f192310..8d6a0e9 100644 --- a/src/lib/gamma-linux-drm.c +++ b/src/lib/gamma-linux-drm.c @@ -655,7 +655,7 @@ static int read_connector_data(libgamma_crtc_state_t* restrict crtc, libgamma_cr c++; /* Construct and store connect name that is unique to the graphics card. */ - sprintf(out->connector_name, "%s-" PRIu32, connector_name_base, (uint32_t)(c + 1)); + sprintf(out->connector_name, "%s-%" PRIu32, connector_name_base, (uint32_t)(c + 1)); } /* Did something go wrong? */ -- cgit v1.2.3-70-g09d2