aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2016-07-15 13:55:47 +0200
committerMattias Andrée <maandree@kth.se>2016-07-15 13:55:47 +0200
commit1b07b5658e04b0d61b3035d3ce4cf544d0a4b74f (patch)
tree93bc4a38234f82b8e7c79b6fddece0a975a40afe /src
parentm (diff)
downloadcoopgammad-1b07b5658e04b0d61b3035d3ce4cf544d0a4b74f.tar.gz
coopgammad-1b07b5658e04b0d61b3035d3ce4cf544d0a4b74f.tar.bz2
coopgammad-1b07b5658e04b0d61b3035d3ce4cf544d0a4b74f.tar.xz
m
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r--src/server.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/server.c b/src/server.c
index 2f3ed7e..8481546 100644
--- a/src/server.c
+++ b/src/server.c
@@ -607,12 +607,8 @@ static int get_gamma_info(size_t conn, char* message_id, char* crtc)
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;