File dmitry.patch of Package perl-Prima

Hi Jurgen,

I think I found the bug that might have caused the coredumps in Prima.
I've tested it on x86_64 linux, couldn't reproduce it though.
May I ask you to apply the patch below and see if it fails still?
Thanks!

===================================================================
RCS file: /pub/prima.eu.org/cvs//prima/Prima/img/codec_X11.c,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -r1.16 -r1.17
--- prima/Prima/img/codec_X11.c	2007/09/12 12:59:22	1.16
+++ prima/Prima/img/codec_X11.c	2008/04/08 08:29:53	1.17
@@ -23,7 +23,7 @@
  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  * SUCH DAMAGE.
  *
- * $Id: codec_X11.c,v 1.16 2007/09/12 12:59:22 dk Exp $
+ * $Id: codec_X11.c,v 1.17 2008/04/08 08:29:53 dk Exp $
  */
 
 #include "img.h"
@@ -230,9 +230,7 @@
          break;
       }   
       xc++;
-   }  
-
-   name[1024] = 0;
+   } 
    
    myprintf( fi-> req, "#define %s_width %d\n", name, i-> w);
    myprintf( fi-> req, "#define %s_height %d\n", name, i-> h);

-- 
Sincerely,
	Dmitry Karasik

openSUSE Build Service is sponsored by