diff options
Diffstat (limited to 'x11/xorg-libs/patches/patch-ao')
-rw-r--r-- | x11/xorg-libs/patches/patch-ao | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/x11/xorg-libs/patches/patch-ao b/x11/xorg-libs/patches/patch-ao deleted file mode 100644 index 9fa35c79448..00000000000 --- a/x11/xorg-libs/patches/patch-ao +++ /dev/null @@ -1,30 +0,0 @@ -$NetBSD: patch-ao,v 1.1 2004/09/16 19:36:10 minskim Exp $ - ---- extras/Xpm/lib/Attrib.c.orig 2003-11-14 10:48:24.000000000 -0600 -+++ extras/Xpm/lib/Attrib.c -@@ -35,7 +35,7 @@ - #include "XpmI.h" - - /* 3.2 backward compatibility code */ --LFUNC(CreateOldColorTable, int, (XpmColor *ct, int ncolors, -+LFUNC(CreateOldColorTable, int, (XpmColor *ct, unsigned int ncolors, - XpmColor ***oldct)); - - LFUNC(FreeOldColorTable, void, (XpmColor **colorTable, int ncolors)); -@@ -46,12 +46,15 @@ LFUNC(FreeOldColorTable, void, (XpmColor - static int - CreateOldColorTable(ct, ncolors, oldct) - XpmColor *ct; -- int ncolors; -+ unsigned int ncolors; - XpmColor ***oldct; - { - XpmColor **colorTable, **color; - int a; - -+ if (ncolors >= SIZE_MAX / sizeof(XpmColor *)) -+ return XpmNoMemory; -+ - colorTable = (XpmColor **) XpmMalloc(ncolors * sizeof(XpmColor *)); - if (!colorTable) { - *oldct = NULL; |