summarylogtreecommitdiffstats
path: root/widescreen.diff
blob: 465f9682e332c8ce65382f17e1bda8c1d24bc201 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
diff -ur golded3-old/gcarea.cpp golded3/gcarea.cpp
--- golded3-old/gcarea.cpp	2019-09-23 14:45:14.980000000 +0300
+++ golded3/gcarea.cpp	2019-09-23 14:45:42.450000000 +0300
@@ -184,7 +184,7 @@
   }
 
   Desc desc;
-  char buf[256];
+  char buf[2560];
   bool newarea = true;
   static int serial = 0;
   static int net1st = false;
@@ -870,7 +870,7 @@
 {
   char* key;
   Path file;
-  char buf[256], options[80];
+  char buf[2560], options[80];
   bool is_sqafix = false;
   bool is_dz = false;
 
diff -ur golded3-old/gccfgg2.cpp golded3/gccfgg2.cpp
--- golded3-old/gccfgg2.cpp	2019-09-23 14:45:14.980000000 +0300
+++ golded3/gccfgg2.cpp	2019-09-23 14:45:42.450000000 +0300
@@ -210,7 +210,7 @@
 
 void CfgAttributes() {
 
-  char buf[256];
+  char buf[2560];
   strxcpy(buf, val, 256);
   if(cfgingroup)
     CFG->grp.AddItm(GRP_ATTRIBUTES, buf, strlen(buf)+1);
diff -ur golded3-old/gccfgg6.cpp golded3/gccfgg6.cpp
--- golded3-old/gccfgg6.cpp	2019-09-23 14:45:14.980000000 +0300
+++ golded3/gccfgg6.cpp	2019-09-23 14:45:42.450000000 +0300
@@ -202,7 +202,7 @@
 
 //  ------------------------------------------------------------------
 
-void CfgOrigin(const char* v)  { char buf[256]; val = strxcpy(buf, v, sizeof(buf)); CfgOrigin(); }
+void CfgOrigin(const char* v)  { char buf[2560]; val = strxcpy(buf, v, sizeof(buf)); CfgOrigin(); }
 void CfgOrigin() {
 
   if(not strblank(val)) {
diff -ur golded3-old/gccfgg8.cpp golded3/gccfgg8.cpp
--- golded3-old/gccfgg8.cpp	2019-09-23 14:45:14.980000000 +0300
+++ golded3/gccfgg8.cpp	2019-09-23 14:45:42.450000000 +0300
@@ -433,7 +433,7 @@
   StripQuotes(val);
   if(not strblank(val)) {
     if(cfgingroup) {
-      char buf[256];
+      char buf[2560];
       strxcpy(buf, val, sizeof(buf));
       CFG->grp.AddItm(GRP_USERNAME, buf, strlen(buf)+1);
     }
diff -ur golded3-old/gclang.cpp golded3/gclang.cpp
--- golded3-old/gclang.cpp	2019-09-23 14:45:14.980000000 +0300
+++ golded3/gclang.cpp	2019-09-23 14:45:42.450000000 +0300
@@ -669,7 +669,7 @@
   char* ptr;
   char* str;
   int line = 0;
-  char buf[256];
+  char buf[2560];
 
   if (file==NULL || *file==0)
   {
diff -ur golded3-old/gcmisc.cpp golded3/gcmisc.cpp
--- golded3-old/gcmisc.cpp	2019-09-23 14:45:14.980000000 +0300
+++ golded3/gcmisc.cpp	2019-09-23 14:45:42.450000000 +0300
@@ -618,7 +618,7 @@
   {
     Esc EscTable;
     Chs ChsTable;
-    char buf[256];
+    char buf[2560];
     char* ptr;
     char* ptr2;
     int line, n, x, y, ch=0;
@@ -864,7 +864,7 @@
     if (ofp.isopen())
     {
       ofp.SetvBuf(NULL, _IOFBF, 16000);
-      char buf[256];
+      char buf[2560];
       long fpos = 0;
       long tpos = 0;
       bool was_blank = false;
diff -ur golded3-old/gearea.cpp golded3/gearea.cpp
--- golded3-old/gearea.cpp	2019-09-23 14:45:14.980000000 +0300
+++ golded3/gearea.cpp	2019-09-23 14:45:42.450000000 +0300
@@ -439,7 +439,7 @@
 void GPickArealist::print_line(uint idx, uint pos, bool isbar) {
 
   vchar vbuf[256];
-  char buf[256];
+  char buf[2560];
 
   if(AL[idx]->isseparator()) {
     Area* area = AL.AreaNoToPtr(idx);
@@ -527,7 +527,7 @@
   for(AL.item = AL.idx.begin(); AL.item != AL.idx.end(); AL.item++)
     nummarks += (*AL.item)->Mark.Count();
 
-  char buf[256];
+  char buf[2560];
   gsprintf(PRINTF_DECLARE_BUFFER(buf), LNG->DropMarksInfo, longdotstr(nummarks));
 
   w_info(buf);
@@ -555,7 +555,7 @@
   uint n;
   uint x;
   const char* adesc;
-  char buf[256], tmp[256];
+  char buf[2560], tmp[256];
 
   int mode, changed, currno;
 
diff -ur golded3-old/gecarb.cpp golded3/gecarb.cpp
--- golded3-old/gecarb.cpp	2019-09-23 14:45:14.980000000 +0300
+++ golded3/gecarb.cpp	2019-09-23 14:45:42.450000000 +0300
@@ -95,7 +95,7 @@
   Attr attr;
   bool cchide;
   bool ignorecc = false;
-  char buf[256], buf2[256];
+  char buf[2560], buf2[2560];
   Line* line;
   Line* newline;
   Line* ccline = NULL;
@@ -334,7 +334,7 @@
 
   if(CFG->crosspost == NO)
     return;
-  char buf[256];
+  char buf[2560];
   const char *ptr;
   bool ignorexc = false;
   Line* newline;
diff -ur golded3-old/gecmfd.cpp golded3/gecmfd.cpp
--- golded3-old/gecmfd.cpp	2019-09-23 14:45:14.980000000 +0300
+++ golded3/gecmfd.cpp	2019-09-23 14:45:42.450000000 +0300
@@ -617,7 +617,7 @@
       }
 
       if(need_netmail_kludges) {
-        char buf[256] = "";
+        char buf[2560] = "";
 
         if (not strstr(msg->txt, "\001INTL"))
           // The INTL kludge for zone crossing
diff -ur golded3-old/gectrl.cpp golded3/gectrl.cpp
--- golded3-old/gectrl.cpp	2019-09-23 14:45:14.980000000 +0300
+++ golded3/gectrl.cpp	2019-09-23 14:45:42.450000000 +0300
@@ -60,7 +60,7 @@
 
 char* MakeOrigin(GMsg* msg, const char* orig) {
 
-  char buf[256];
+  char buf[2560];
   char origin[100];
 
   strxcpy(origin, orig, sizeof(origin));
diff -ur golded3-old/gedoit.cpp golded3/gedoit.cpp
--- golded3-old/gedoit.cpp	2019-09-23 14:45:14.980000000 +0300
+++ golded3/gedoit.cpp	2019-09-23 14:45:42.450000000 +0300
@@ -142,7 +142,7 @@
   }
   else
   {
-    char buf[256];
+    char buf[2560];
     gsprintf(PRINTF_DECLARE_BUFFER(buf), LNG->CouldNotOpen, fnam);
     w_info(buf);
     waitkeyt(10000);
@@ -162,7 +162,7 @@
 
   GFTRK("WriteMsgs");
 
-  char buf[256];
+  char buf[2560];
   char fname[GMAXPATH], ofname[GMAXPATH];
 
   int overwrite = NO;
diff -ur golded3-old/gefile.cpp golded3/gefile.cpp
--- golded3-old/gefile.cpp	2019-09-23 14:45:14.980000000 +0300
+++ golded3/gefile.cpp	2019-09-23 14:45:42.450000000 +0300
@@ -377,7 +377,7 @@
   gfileselect* p = new gfileselect;
   throw_new(p);
 
-  char buf[256];
+  char buf[2560];
   Path fbuf;
   uint MIN_POS=0, MAX_POS=MIN_POS+MAXROW-10;
   bool done, winop = false;
@@ -732,7 +732,7 @@
   if (AA->Msgn.Count() and msg->line and msg->lines)
   {
     gstrarray freqfile;
-    char buf[256];
+    char buf[2560];
     const char* ptr;
     const char* ptr1 = NULL;
     const char* ptr2;
diff -ur golded3-old/geinit.cpp golded3/geinit.cpp
--- golded3-old/geinit.cpp	2019-09-23 14:45:14.980000000 +0300
+++ golded3/geinit.cpp	2019-09-23 14:45:42.450000000 +0300
@@ -175,7 +175,7 @@
   gfile fp(AddPath(CFG->areapath, CFG->semaphore.importlist), "rt", CFG->sharemode);
   if (fp.isopen())
   {
-    char buf[256];
+    char buf[2560];
     int echonums = 0;
     update_statusline(LNG->ReadingEcholist);
     while (fp.Fgets(buf, sizeof(buf)))
@@ -193,7 +193,7 @@
   // Mark the areas from the import taglist
   for (uint n = 0; n < AL.size(); n++)
   {
-    char buf[256];
+    char buf[2560];
     strcpy(buf, AL[n]->echoid());
     int x = SearchTaglist(echoin, buf);
     if(*echoin[x])
@@ -244,7 +244,7 @@
 static void ReadAddrMacros()
 {
   char* ptr;
-  char buf[256], path[GMAXPATH];
+  char buf[2560], path[GMAXPATH];
 
   ptr = getenv("FD");
   if(ptr)
@@ -806,10 +806,7 @@
   oldscreen = vsave();
   #endif
 
-  if(CFG->screensize > 0xFF) {
-    gvid->setmode(CFG->screensize >> 8);    // Set video mode
-  }
-  else if(CFG->screensize) {
+  if(CFG->screensize) {
     gvid->setrows(CFG->screensize);         // Just set rows
   }
 
diff -ur golded3-old/geline.cpp golded3/geline.cpp
--- golded3-old/geline.cpp	2019-09-23 14:45:15.060000000 +0300
+++ golded3/geline.cpp	2019-09-23 14:45:42.450000000 +0300
@@ -3186,7 +3186,7 @@
 
 Line* AddLineF(Line*& line, const char* format, ...) {
 
-  char buf[256];
+  char buf[2560];
   va_list argptr;
   va_start(argptr, format);
   vsprintf(buf, format, argptr);
@@ -3200,7 +3200,7 @@
 
 Line* AddHexdump(Line*& line, void* data, size_t datalen) {
 
-  char buf[256];
+  char buf[2560];
   uint pos = 0;
   char* ptr = (char*)data;
 
@@ -3306,7 +3306,7 @@
 void InvalidateControlInfo(GMsg* msg) {
 
   Line* line = msg->lin;
-  char buf[256];
+  char buf[2560];
 
   while(line) {
 
diff -ur golded3-old/gemenu.cpp golded3/gemenu.cpp
--- golded3-old/gemenu.cpp	2019-09-23 14:45:14.990000000 +0300
+++ golded3/gemenu.cpp	2019-09-23 14:45:42.450000000 +0300
@@ -605,7 +605,7 @@
 
 int SelectFromFile(const char* file, char* selection, const char* title, const char* nolines)
 {
-  char buf[256];
+  char buf[2560];
   bool retval=false;
   int lines = 0;
 
@@ -664,7 +664,7 @@
 
   if (not CFG->tagline.empty())
   {
-    char buf[256];
+    char buf[2560];
     gstrarray Listi;
 
     gstrarray::iterator it = CFG->tagline.begin();
@@ -724,7 +724,7 @@
 
   if (not CFG->origin.empty())
   {
-    char buf[256];
+    char buf[2560];
     gstrarray Listi;
 
     gstrarray::iterator it = CFG->origin.begin();
@@ -782,7 +782,7 @@
 {
   if(not CFG->username.empty())
   {
-    char buf[256];
+    char buf[2560];
     char adrs[40];
     gstrarray Listi;
 
@@ -833,7 +833,7 @@
 {
   if (not CFG->tpl.empty())
   {
-    char buf[256];
+    char buf[2560];
     char adrs[40];
     gstrarray Listi;
 
diff -ur golded3-old/gemlst.cpp golded3/gemlst.cpp
--- golded3-old/gemlst.cpp	2019-09-23 14:45:14.990000000 +0300
+++ golded3/gemlst.cpp	2019-09-23 14:45:42.450000000 +0300
@@ -333,7 +333,7 @@
     mattr_ = hattr;
   }
 
-  char buf[256];
+  char buf[2560];
 
   if(AA->Msglistwidesubj()) {
     resiz += tosiz + 1;
@@ -865,7 +865,7 @@
 
 void GThreadlist::print_line(uint idx, uint pos, bool isbar)
 {
-  char buf[256];
+  char buf[2560];
   ThreadEntry &t = treeEntryList[idx];
   size_t tdlen = xlen - ((AA->Msglistdate() == MSGLISTDATE_NONE) ? 8 : 18);
 
diff -ur golded3-old/genode.cpp golded3/genode.cpp
--- golded3-old/genode.cpp	2019-09-23 14:45:14.990000000 +0300
+++ golded3/genode.cpp	2019-09-23 14:45:42.450000000 +0300
@@ -1133,7 +1133,7 @@
     location = it->loc;
   else
   {
-    char buf[256];
+    char buf[2560];
     location_item item(addr);
 
     addr.make_string(buf);
@@ -1191,7 +1191,7 @@
   w_info(LNG->Wait);
 
   Addr addr;
-  char buf[256];
+  char buf[2560];
   char* ptr = buf;
 
   switch(what) {
@@ -1257,7 +1257,7 @@
     if (fp.isopen())
     {
       // Read the list index
-      char buf[256];
+      char buf[2560];
       NODE->nodelists = 0;
       while (fp.Fgets(buf, sizeof(buf)))
       {
diff -ur golded3-old/gepost.cpp golded3/gepost.cpp
--- golded3-old/gepost.cpp	2019-09-23 14:45:14.990000000 +0300
+++ golded3/gepost.cpp	2019-09-23 14:45:42.450000000 +0300
@@ -482,7 +482,7 @@
 static void MakeMsg2(int& mode, int& status, int& forwstat, int& topline, GMsg* msg, GMsg* oldmsg, GMsg* cmpmsg) {
 
   uint n;
-  char buf[256], buf2[256];
+  char buf[2560], buf2[2560];
   Line* line;
   Line* newline;
 
diff -ur golded3-old/geqwks.cpp golded3/geqwks.cpp
--- golded3-old/geqwks.cpp	2019-09-23 14:45:14.990000000 +0300
+++ golded3/geqwks.cpp	2019-09-23 14:45:42.450000000 +0300
@@ -44,7 +44,7 @@
     {
       char* key;
       char* val;
-      char buf[256];
+      char buf[2560];
       while (fp.Fgets(buf, sizeof(buf)))
       {
         val = strtrim(buf);
@@ -75,7 +75,7 @@
   gfile fp(file, "rt");
   if (fp.isopen())
   {
-    char buf[256];
+    char buf[2560];
     int line = 0;
     int confno = 0;
     int confcnt = 0;
@@ -342,7 +342,7 @@
 
     if (imported and *QWK->ReplyLinker())
     {
-      char buf[256];
+      char buf[2560];
       gsprintf(PRINTF_DECLARE_BUFFER(buf), LNG->Replylinker, QWK->ReplyLinker());
       ShellToDos(QWK->ReplyLinker(), buf, LGREY_|_BLACK, YES);
     }
@@ -542,7 +542,7 @@
   fp.Fopen(scanfile, "rt");
   if (fp.isopen())
   {
-    char buf[256];
+    char buf[2560];
     while (fp.Fgets(buf, sizeof(buf)))
     {
       char* ptr = strchr(buf, ' ');
diff -ur golded3-old/gerand.cpp golded3/gerand.cpp
--- golded3-old/gerand.cpp	2019-09-23 14:45:14.990000000 +0300
+++ golded3/gerand.cpp	2019-09-23 14:45:42.450000000 +0300
@@ -277,7 +277,7 @@
   }
 
   if(found) {
-    char buf[256];
+    char buf[2560];
 
     if(CFG->grp.GetItm(GRP_AKA, &adat->aka, sizeof(gaka)))
       SetAka(adat->aka.addr);
diff -ur golded3-old/geread.cpp golded3/geread.cpp
--- golded3-old/geread.cpp	2019-09-23 14:45:14.990000000 +0300
+++ golded3/geread.cpp	2019-09-23 14:45:42.450000000 +0300
@@ -141,7 +141,7 @@
 
   int istwit;
   bool istwitto, istwitsubj;
-  char buf[256], buf2[200];
+  char buf[2560], buf2[2560];
 
   GMsg* msg = (GMsg*)throw_calloc(1, sizeof(GMsg));
 
diff -ur golded3-old/gesoup.cpp golded3/gesoup.cpp
--- golded3-old/gesoup.cpp	2019-09-23 14:45:14.990000000 +0300
+++ golded3/gesoup.cpp	2019-09-23 14:45:42.450000000 +0300
@@ -762,7 +762,7 @@
     fp.Fopen(scanfile, "rt");
     if (fp.isopen())
     {
-      char buf[256];
+      char buf[2560];
       while (fp.Fgets(buf, sizeof(buf)))
       {
         char* ptr = strchr(buf, ' ');
diff -ur golded3-old/gesrch.cpp golded3/gesrch.cpp
--- golded3-old/gesrch.cpp	2019-09-23 14:45:14.990000000 +0300
+++ golded3/gesrch.cpp	2019-09-23 14:45:42.450000000 +0300
@@ -166,7 +166,7 @@
   default_item.where.kludges   = false;
   default_item.where.signature = false;
 
-  char buf[256];
+  char buf[2560];
   char* b = buf;
   bool item_complete = false;
 
diff -ur golded3-old/geutil2.cpp golded3/geutil2.cpp
--- golded3-old/geutil2.cpp	2019-09-23 14:45:14.990000000 +0300
+++ golded3/geutil2.cpp	2019-09-23 14:45:42.450000000 +0300
@@ -159,7 +159,7 @@
 
   int n = strlen(find);
   if(strnieql(text, find, n) and (not is_tearline or (text[n] == NUL) or isspace(text[n]))) {
-    char buf[256];
+    char buf[2560];
 
     strcpy(buf, text);
     strcpy(stpcpy(text, replace), &buf[n]);