From c54cd1da58e8e3d0dcfedbd836e53f1af3a06eaa Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Fri, 15 Jul 2016 13:57:12 +0200 Subject: m MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/server.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'src') diff --git a/src/server.c b/src/server.c index 8481546..448e6cc 100644 --- a/src/server.c +++ b/src/server.c @@ -691,12 +691,8 @@ static int get_gamma(size_t conn, char* message_id, char* crtc, char* coalesce, switch (output->depth) { - case -2: - sprintf(depth, "%s", "d"); - break; - case -1: - sprintf(depth, "%s", "f"); - break; + case -2: strcpy(depth, "d"); break; + case -1: strcpy(depth, "f"); break; default: sprintf(depth, "%i", output->depth); break; -- cgit v1.2.3-70-g09d2