mirror of the now-defunct rocklinux.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
854 B

  1. Index: programs/Xserver/render/mitri.c
  2. ===================================================================
  3. RCS file: /cvs/xorg/xc/programs/Xserver/render/mitri.c,v
  4. retrieving revision 1.5
  5. diff -u -r1.5 mitri.c
  6. --- ./programs/Xserver/render/mitri.c 3 Jul 2005 07:02:08 -0000 1.5
  7. +++ ./programs/Xserver/render/mitri.c 30 Apr 2006 20:19:57 -0000
  8. @@ -145,7 +145,7 @@
  9. if (npoint < 3)
  10. return;
  11. ntri = npoint - 2;
  12. - tris = ALLOCATE_LOCAL (ntri & sizeof (xTriangle));
  13. + tris = ALLOCATE_LOCAL (ntri * sizeof (xTriangle));
  14. if (!tris)
  15. return;
  16. for (tri = tris; npoint >= 3; npoint--, points++, tri++)
  17. @@ -177,7 +177,7 @@
  18. if (npoint < 3)
  19. return;
  20. ntri = npoint - 2;
  21. - tris = ALLOCATE_LOCAL (ntri & sizeof (xTriangle));
  22. + tris = ALLOCATE_LOCAL (ntri * sizeof (xTriangle));
  23. if (!tris)
  24. return;
  25. first = points++;