Package: imagemagick
Version: 8:6.6.9.7-2
Severity: important
Tags: patch

Hi,

the new imagemagik 8:6.6.9.7-2 fail to build[1] on hurd-i386.
The problem is due to a variable not renamed in a Hurd-specific block
of code in magick/utility.c.
The attached patch fixes the issue, fixing also a missing +1 in the
calculation of "extent".

[1] 
https://buildd.debian.org/status/fetch.php?pkg=imagemagick&arch=hurd-i386&ver=8%3A6.6.9.7-2&stamp=1306337160

Thanks,
-- 
Pino
--- a/magick/utility.c
+++ b/magick/utility.c
@@ -1019,12 +1019,12 @@
         size_t
           extent;
 
-        extent=strlen(cwd)+strlen(program_name)+1;
+        extent=strlen(directory)+1+strlen(program_name)+1;
         program_name=AcquireQuantumMemory(extent,sizeof(*program_name));
         if (program_name == (char *) NULL)
           program_name=program_invocation_name;
         else
-          count=FormatMagickString(program_name,extent,"%s/%s",cwd,
+          count=FormatMagickString(program_name,extent,"%s/%s",directory,
             program_invocation_name);
       }
     if (count != -1)

Reply via email to