summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--misc/cdda_server.c2
-rw-r--r--misc/libdvdcss-1.2.6-network.patch2
2 files changed, 2 insertions, 2 deletions
diff --git a/misc/cdda_server.c b/misc/cdda_server.c
index 96dc57842..d054f23be 100644
--- a/misc/cdda_server.c
+++ b/misc/cdda_server.c
@@ -312,7 +312,7 @@ int sock_string_write(int socket, char *msg, ...) {
va_list args;
va_start(args, msg);
- vsnprintf(buf, _BUFSIZ, msg, args);
+ vsnprintf(buf, _BUFSIZ - 1, msg, args);
va_end(args);
/* Each line sent is '\n' terminated */
diff --git a/misc/libdvdcss-1.2.6-network.patch b/misc/libdvdcss-1.2.6-network.patch
index 8152039cc..18fbc3652 100644
--- a/misc/libdvdcss-1.2.6-network.patch
+++ b/misc/libdvdcss-1.2.6-network.patch
@@ -427,7 +427,7 @@ diff -u --new-file libdvdcss-1.2.6/src/network.c libdvdcss-1.2.6-network/src/net
+ int ret, n;
+
+ va_start(args, msg);
-+ vsnprintf(buf, _BUFSIZ, msg, args);
++ vsnprintf(buf, _BUFSIZ - 1, msg, args);
+ va_end(args);
+
+ /* Each line sent is '\n' terminated */