summaryrefslogtreecommitdiff
path: root/graphics/openexr/patches/patch-ai
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/openexr/patches/patch-ai')
-rw-r--r--graphics/openexr/patches/patch-ai13
1 files changed, 13 insertions, 0 deletions
diff --git a/graphics/openexr/patches/patch-ai b/graphics/openexr/patches/patch-ai
new file mode 100644
index 00000000000..b31232a3175
--- /dev/null
+++ b/graphics/openexr/patches/patch-ai
@@ -0,0 +1,13 @@
+$NetBSD: patch-ai,v 1.1 2009/08/28 21:33:08 hasso Exp $
+
+--- IlmImf/ImfAutoArray.h.orig 2007-04-23 20:26:56.000000000 -0500
++++ IlmImf/ImfAutoArray.h 2009-07-29 13:22:08.309288375 -0500
+@@ -57,7 +57,7 @@ namespace Imf {
+ {
+ public:
+
+- AutoArray (): _data (new T [size]) {}
++ AutoArray (): _data (new T [size]) {memset(_data, 0, size * sizeof(T));}
+ ~AutoArray () {delete [] _data;}
+
+ operator T * () {return _data;}