Fixed Bug #109368: Ged+ crashes if there are more than 30 links in the help

This commit is contained in:
Jacobo Tarrío 2000-09-24 14:28:53 +00:00
parent 6f903d3fbc
commit ee35ed38c2

View File

@ -52,7 +52,7 @@
// ------------------------------------------------------------------
// Constants
#define MAXXREF 30
#define MAXXREF 50
#define BUFSIZE 80
#define BASETAGID 200
@ -435,7 +435,7 @@ static void disp_cat() {
*p = NUL;
itemopen ^= 1;
wprints(wrow, wcol, gwin.active->attr, q);
if(not itemopen) {
if((not itemopen) and (arraycnt<MAXXREF)) {
if((catarray[arraycnt]=(char*)throw_malloc(strlen(q)+1))!=NULL) {
strcpy(catarray[arraycnt],q);
if(not menuopen) {