Commit Larry Doolittle's buffers-on-stack/buffers-via-malloc patch.
-Erik
diff --git a/busybox.h b/busybox.h
index 018c636..be6c6f3 100644
--- a/busybox.h
+++ b/busybox.h
@@ -266,4 +266,12 @@
#define GIGABYTE (MEGABYTE*1024)
#endif
+#ifdef BB_FEATURE_BUFFERS_GO_ON_STACK
+#define RESERVE_BB_BUFFER(buffer,len) char buffer[len]
+#define RESERVE_BB_UBUFFER(buffer,len) unsigned char buffer[len]
+#else
+#define RESERVE_BB_BUFFER(buffer,len) char *buffer=xmalloc(len)
+#define RESERVE_BB_UBUFFER(buffer,len) unsigned char *buffer=xmalloc(len)
+#endif
+
#endif /* _BB_INTERNAL_H_ */