Thread: Macro Help
View Single Post
Old February 19, 2015, 01:41   #2
PosChengband Maintainer
Join Date: Jan 2008
Posts: 702
chris is on a distinguished road
Ah, good times. Learning to debug on Linux and what better way to cut my teeth than attempting to mod main-gcu.c. Subtle changes to the map display size are now causing stack stompage. Eventually, after about 4 hours, I discover this:

diff --git a/src/main-gcu.c b/src/main-gcu.c
index 18606dd..e018ae3 100644
--- a/src/main-gcu.c
+++ b/src/main-gcu.c
@@ -1094,7 +1094,7 @@ static errr Term_text_gcu(int x, int y, int n, byte a, cptr s)
    int i;
-   char text[81];
+   char text[1024];
I was wondering why 80x24 was hardcoded all over the place ...
chris is offline   Reply With Quote