Bug in libgnomecanvas...



Hi all,

In the package libgnomecanvas-2.2.1 (Debian sid) and in the cvs version too, I have found a little error in the file gnome-canvas-path-def.c

Here is a patch :

--- libgnomecanvas-2.2.1/libgnomecanvas/gnome-canvas-path-def.c 2002- 05-06 18:40:12.000000000 +0200 +++ libgnomecanvas-2.2.1-patch/libgnomecanvas/gnome-canvas-path-def.c 2003-09-11 15:59:22.000000000 +0200
@@ -345,7 +345,7 @@ gnome_canvas_path_def_concat (const GSLi

       for (l = list; l != NULL; l = l->next) {
               c = (GnomeCanvasPathDef *) l->data;
-               memcpy (bp, c->bpath, c->end);
+               memcpy (bp, c->bpath, c->end * sizeof (ArtBpath));
               bp += c->end;
       }


I hope it will be useful !



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]