aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-06-03 08:20:47 +0200
committerMattias Andrée <maandree@operamail.com>2014-06-03 08:20:47 +0200
commit9e986ae175ff5eb24d239a42af8a80b5efcd3f74 (patch)
treef171fbdc3e7fbc048bd9356faf8a54b2132a5b38 /src
parentgamma-linux-drm: do not attempt to get the encoder for disabled connectors (diff)
downloadlibgamma-9e986ae175ff5eb24d239a42af8a80b5efcd3f74.tar.gz
libgamma-9e986ae175ff5eb24d239a42af8a80b5efcd3f74.tar.bz2
libgamma-9e986ae175ff5eb24d239a42af8a80b5efcd3f74.tar.xz
add missing % in an sprintf, why did the compiler not warn us?
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rw-r--r--src/lib/gamma-linux-drm.c2
1 files changed, 1 insertions, 1 deletions
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? */