Commit Larry Doolittle's buffers-on-stack/buffers-via-malloc patch.
-Erik
diff --git a/tr.c b/tr.c
index d21e672..15e3709 100644
--- a/tr.c
+++ b/tr.c
@@ -144,10 +144,11 @@
int output_length=0, input_length;
int index = 1;
int i;
- /* set up big arrays here (better than making a bunch of static arrays up top) */
- unsigned char output[BUFSIZ], input[BUFSIZ];
- unsigned char vector[ASCII + 1];
- char invec[ASCII + 1], outvec[ASCII + 1];
+ RESERVE_BB_BUFFER(output, BUFSIZ);
+ RESERVE_BB_BUFFER(input, BUFSIZ);
+ RESERVE_BB_UBUFFER(vector, ASCII+1);
+ RESERVE_BB_BUFFER(invec, ASCII+1);
+ RESERVE_BB_BUFFER(outvec, ASCII+1);
/* ... but make them available globally */
poutput = output;