diff -ur image-1.0.14-orig/src/__boundary__.cc image-1.0.14/src/__boundary__.cc
--- image-1.0.14-orig/src/__boundary__.cc	2010-12-22 23:02:14 +0000
+++ image-1.0.14/src/__boundary__.cc	2011-08-28 22:30:20 +0100
@@ -21,6 +21,7 @@
  *      b = boundary(region, conn=8)
  */
 #include <octave/oct.h>
+#include <octave/oct-locbuf.h>
 
 using namespace std;
 
@@ -118,7 +119,7 @@
       const int* mBack = (conn == 4) ? back4 : back8;
 
       // relative indexes into the region for the Moore neighbourhood pixels
-      int mi [conn];
+      OCTAVE_LOCAL_BUFFER (int, mi, conn);
       for (int i = 0; i < conn; ++i)
         mi[i] = mr[i] + (rows * mc [i]);
 
