[SCM] libquicktime/master: Avoid unconditionalized use of PATH_MAX, attempt to fix FTBFS on hurd.
alessio at users.alioth.debian.org
alessio at users.alioth.debian.org
Wed May 25 22:53:35 UTC 2011
The following commit has been merged in the master branch:
commit c08427a54a0143ab47271f377befc5990f0133fd
Author: Alessio Treglia <alessio at debian.org>
Date: Thu May 26 00:53:12 2011 +0200
Avoid unconditionalized use of PATH_MAX, attempt to fix FTBFS on hurd.
diff --git a/debian/patches/12-dont_use_pathmax.patch b/debian/patches/12-dont_use_pathmax.patch
new file mode 100644
index 0000000..6f9ae2e
--- /dev/null
+++ b/debian/patches/12-dont_use_pathmax.patch
@@ -0,0 +1,34 @@
+Author: Alessio Treglia <alessio at debian.org>
+Description: Avoid unconditionalized use of PATH_MAX to fix FTBFS on hurd.
+Forwarded: Burkhard Plaum <plaum at ipf.uni-stuttgart.de>
+---
+ src/lqt_codecfile.c | 6 +++++-
+ 1 file changed, 5 insertions(+), 1 deletion(-)
+
+--- libquicktime.orig/src/lqt_codecfile.c
++++ libquicktime/src/lqt_codecfile.c
+@@ -143,7 +143,7 @@ static const char * video_order_key = "V
+
+ #define CHECK_KEYWORD(key) (!strncmp(line, key, strlen(key)))
+
+-static char filename_buffer[PATH_MAX];
++static char * filename_buffer = NULL;
+
+ static void create_filename()
+ {
+@@ -164,11 +164,15 @@ static void create_filename()
+ if(!fdir)
+ return;
+
++ filename_buffer = malloc(strlen(fdir) + 22);
+ strcpy(filename_buffer, fdir);
+ strcat(filename_buffer, "/.libquicktime_codecs");
+
+ } else
++ {
++ filename_buffer = malloc(strlen(fdir) + 1);
+ strcpy(filename_buffer, fdir);
++ }
+
+
+ }
diff --git a/debian/patches/series b/debian/patches/series
index 9244d0a..158a9cd 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,4 +1,5 @@
02-install-in-libquicktime2.patch
11-gtk+-2.24.patch
+12-dont_use_pathmax.patch
22-spelling_errors.patch
23-manpage_errors.patch
--
libquicktime packaging
More information about the pkg-multimedia-commits
mailing list