aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2016-07-15 13:57:12 +0200
committerMattias Andrée <maandree@kth.se>2016-07-15 13:57:12 +0200
commitc54cd1da58e8e3d0dcfedbd836e53f1af3a06eaa (patch)
tree1f5d7a2a5c2d64f3c0ca4e850245c060031e8e91 /src
parentm (diff)
downloadcoopgammad-c54cd1da58e8e3d0dcfedbd836e53f1af3a06eaa.tar.gz
coopgammad-c54cd1da58e8e3d0dcfedbd836e53f1af3a06eaa.tar.bz2
coopgammad-c54cd1da58e8e3d0dcfedbd836e53f1af3a06eaa.tar.xz
m
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to 'src')
-rw-r--r--src/server.c8
1 files changed, 2 insertions, 6 deletions
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;