summaryrefslogtreecommitdiff
path: root/misc/cdda_server.c
diff options
context:
space:
mode:
authorMichael Roitzsch <mroi@users.sourceforge.net>2004-07-27 18:06:45 +0000
committerMichael Roitzsch <mroi@users.sourceforge.net>2004-07-27 18:06:45 +0000
commit7450bd283f0082fe1b3499142ad5273067db70c6 (patch)
tree6d3d3ac6ca6ced550ccf97debc3cd288c17776b4 /misc/cdda_server.c
parent25ba0f3888a1e4c3b92f926ce8828d56e40e3c61 (diff)
downloadxine-lib-7450bd283f0082fe1b3499142ad5273067db70c6.tar.gz
xine-lib-7450bd283f0082fe1b3499142ad5273067db70c6.tar.bz2
from the docs of sprintf: "when the strings overlap, the behaviour is undefined"
(actually it works with glibc and sprintf, but not with snprintf) CVS patchset: 6859 CVS date: 2004/07/27 18:06:45
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));
}