summaryrefslogtreecommitdiff
path: root/misc/cdda_server.c
diff options
context:
space:
mode:
Diffstat (limited to 'misc/cdda_server.c')
-rw-r--r--misc/cdda_server.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/misc/cdda_server.c b/misc/cdda_server.c
index d054f23be..d927113c0 100644
--- a/misc/cdda_server.c
+++ b/misc/cdda_server.c
@@ -317,7 +317,7 @@ int sock_string_write(int socket, char *msg, ...) {
/* Each line sent is '\n' terminated */
if((buf[strlen(buf)] == '\0') && (buf[strlen(buf) - 1] != '\n'))
- sprintf(buf, "%s%c", buf, '\n');
+ strcat(buf, "\n");
return sock_data_write(socket, buf, strlen(buf));
}