Fixup fromcvs/togit conversion
[minix-pkgsrc.git] / graphics / openexr / patches / patch-ai
blob210fb196a740d03e70a657d80e1744dbcc082c9e
1 $NetBSD: patch-ai,v 1.1 2009/08/28 21:33:08 hasso Exp $
3 --- IlmImf/ImfAutoArray.h.orig  2007-04-23 20:26:56.000000000 -0500
4 +++ IlmImf/ImfAutoArray.h       2009-07-29 13:22:08.309288375 -0500
5 @@ -45,6 +45,7 @@
6  //-----------------------------------------------------------------------------
7  
8  #include "OpenEXRConfig.h"
9 +#include <string.h>
11  namespace Imf {
13 @@ -57,7 +57,7 @@ namespace Imf {
14      {
15        public:
17 -        AutoArray (): _data (new T [size]) {}
18 +        AutoArray (): _data (new T [size]) {memset(_data, 0, size * sizeof(T));}
19         ~AutoArray () {delete [] _data;}
21         operator T * ()                 {return _data;}