[SCM] faad2 packaging branch, master, updated. debian/2.7-4-5-ga421d73

Felipe Sateler fsateler at debian.org
Mon Aug 16 16:27:14 UTC 2010


On 16/08/10 10:36, fabian-guest at users.alioth.debian.org wrote:
> The following commit has been merged in the master branch:
> commit a421d733a6b9f24c72326e08bddccdbd5bc0ddf3
> Author: Fabian Greffrath <fabian at greffrath.com>
> Date:   Mon Aug 16 16:39:32 2010 +0200
> 
>     Extend file name buffers for longer path names.
> 
> diff --git a/debian/patches/path_max.patch b/debian/patches/path_max.patch
> new file mode 100644
> index 0000000..c606354
> --- /dev/null
> +++ b/debian/patches/path_max.patch
> @@ -0,0 +1,27 @@
> +Description: Extend file name buffers for longer path names.
> +Author: Fabian Greffrath <fabian+debian at greffrath.com>
> +Forwarded: menno at audiocoding.com
> +
> +--- faad2.orig/frontend/main.c
> ++++ faad2/frontend/main.c
> +@@ -42,6 +42,7 @@
> + #include <stdlib.h>
> + #include <string.h>
> + #include <getopt.h>
> ++#include <limits.h>
> + 
> + #include <neaacdec.h>
> + #include <mp4ff.h>
> +@@ -1107,9 +1108,9 @@ int main(int argc, char *argv[])
> +     int mp4file = 0;
> +     int noGapless = 0;
> +     char *fnp;
> +-    char aacFileName[255];
> +-    char audioFileName[255];
> +-    char adtsFileName[255];
> ++    char aacFileName[PATH_MAX + 1];
> ++    char audioFileName[PATH_MAX + 1];
> ++    char adtsFileName[PATH_MAX + 1];

I believe not all archs have PATH_MAX. I'm almost positive that hurd
doesn't have it.

-- 
Saludos,
Felipe Sateler



More information about the pkg-multimedia-maintainers mailing list