From ecb76618ef3b194d789886d9b725daa6a4f29029 Mon Sep 17 00:00:00 2001 From: Tim Waugh Date: Feb 24 2015 16:58:25 +0000 Subject: Use calloc instead of xmalloc. --- diff --git a/tigervnc-xserver117.patch b/tigervnc-xserver117.patch index c5dd67b..77f813b 100644 --- a/tigervnc-xserver117.patch +++ b/tigervnc-xserver117.patch @@ -23,9 +23,9 @@ diff -up tigervnc-1.4.2/unix/xserver/hw/vnc/xvnc.cc.xserver117 tigervnc-1.4.2/un - ppix = (Pixel *)xalloc(entries * sizeof(Pixel)); - prgb = (xrgb *)xalloc(entries * sizeof(xrgb)); - defs = (xColorItem *)xalloc(entries * sizeof(xColorItem)); -+ ppix = (Pixel *)malloc(entries * sizeof(Pixel)); -+ prgb = (xrgb *)malloc(entries * sizeof(xrgb)); -+ defs = (xColorItem *)malloc(entries * sizeof(xColorItem)); ++ ppix = (Pixel *)calloc(entries, sizeof(Pixel)); ++ prgb = (xrgb *)calloc(entries, sizeof(xrgb)); ++ defs = (xColorItem *)calloc(entries, sizeof(xColorItem)); for (i = 0; i < entries; i++) ppix[i] = i; /* XXX truecolor */ diff --git a/tigervnc.spec b/tigervnc.spec index fabd25d..077fa57 100644 --- a/tigervnc.spec +++ b/tigervnc.spec @@ -1,6 +1,6 @@ Name: tigervnc Version: 1.4.2 -Release: 2%{?dist} +Release: 3%{?dist} Summary: A TigerVNC remote display system %global _hardened_build 1 @@ -353,6 +353,7 @@ fi %changelog * Tue Feb 24 2015 Tim Waugh - 1.4.2-3 +- Use calloc instead of xmalloc. - Removed unnecessary configure flags. * Wed Feb 18 2015 Rex Dieter 1.4.2-2