summaryrefslogtreecommitdiff
path: root/misc/libdvdcss-1.2.6-network.patch
diff options
context:
space:
mode:
authorMichael Roitzsch <mroi@users.sourceforge.net>2004-07-25 17:06:03 +0000
committerMichael Roitzsch <mroi@users.sourceforge.net>2004-07-25 17:06:03 +0000
commit0e1a7f3845c53c459f61d3b9f41f086053cc88c2 (patch)
treec2431052bdb7ac8bbd6a7630c07e567e1aaf2c55 /misc/libdvdcss-1.2.6-network.patch
parent831a241c6fab397ee3eb05bad22bcd782200d63a (diff)
downloadxine-lib-0e1a7f3845c53c459f61d3b9f41f086053cc88c2.tar.gz
xine-lib-0e1a7f3845c53c459f61d3b9f41f086053cc88c2.tar.bz2
do not fill up to the max when you intend to strcat() another character later
CVS patchset: 6845 CVS date: 2004/07/25 17:06:03
Diffstat (limited to 'misc/libdvdcss-1.2.6-network.patch')
-rw-r--r--misc/libdvdcss-1.2.6-network.patch2
1 files changed, 1 insertions, 1 deletions
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 */