Package: swftools Version: 0.8.1-1 Severity: normal The png2swf program cannot handle more than 1024 files on the command line. This limit is arbitrary and easily removed. Here is a patch which does so:
--- png2swf.c.orig 2008-09-29 15:30:54.000000000 +0200 +++ png2swf.c 2008-09-29 15:20:40.000000000 +0200 @@ -27,7 +27,6 @@ #include "../lib/rfxswf.h" #include "../lib/args.h" -#define MAX_INPUT_FILES 1024 #define VERBOSE(x) (global.verbose>=x) struct { @@ -46,7 +45,7 @@ struct { struct { char *filename; -} image[MAX_INPUT_FILES]; +} *image; static int custom_move=0; static int move_x=0; @@ -994,13 +993,15 @@ int args_callback_command(char *arg, cha fprintf(stderr, "Error opening input file: %s\n", arg); free(s); } else { + static max_input_files = 0; + if (global.nfiles == max_input_files) { + if (max_input_files == 0) + image = malloc((max_input_files = 1024) * sizeof(*image)); + else + image = realloc(image, (max_input_files *= 2) * sizeof(*image)); + } image[global.nfiles].filename = s; global.nfiles++; - if (global.nfiles >= MAX_INPUT_FILES) { - if (VERBOSE(1)) - fprintf(stderr, "Error: Too many input files.\n"); - exit(1); - } } return 0; } -- System Information: Debian Release: lenny/sid APT prefers testing APT policy: (990, 'testing'), (500, 'testing-proposed-updates') Architecture: amd64 (x86_64) Kernel: Linux 2.6.26-1-amd64 (SMP w/2 CPU cores) Locale: LANG=C, [EMAIL PROTECTED] (charmap=ANSI_X3.4-1968) (ignored: LC_ALL set to C) Shell: /bin/sh linked to /bin/bash Versions of packages swftools depends on: ii gsfonts 1:8.11+urwcyr1.0.7~pre44-3 Fonts for the Ghostscript interpre ii libart-2.0-2 2.3.20-2 Library of functions for 2D graphi ii libc6 2.7-13 GNU C Library: Shared libraries ii libfreetype6 2.3.7-2 FreeType 2 font engine, shared lib ii libgcc1 1:4.3.1-9 GCC support library ii libgif4 4.1.6-5 library for GIF images (library) ii libjpeg62 6b-14 The Independent JPEG Group's JPEG ii libmp3lame0 3.98-0.1 LAME Ain't an MP3 Encoder ii libstdc++6 4.3.1-9 The GNU Standard C++ Library v3 ii zlib1g 1:1.2.3.3.dfsg-12 compression library - runtime swftools recommends no packages. Versions of packages swftools suggests: ii ghostscript [gs-common] 8.62.dfsg.1-3.1 The GPL Ghostscript PostScript/PDF ii gs-common 8.62.dfsg.1-3.1 Transitional package -- no debconf information -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]