aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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;