Fixed Bug #109368: Ged+ crashes if there are more than 30 links in the help
This commit is contained in:
parent
6f903d3fbc
commit
ee35ed38c2
@ -52,7 +52,7 @@
|
|||||||
// ------------------------------------------------------------------
|
// ------------------------------------------------------------------
|
||||||
// Constants
|
// Constants
|
||||||
|
|
||||||
#define MAXXREF 30
|
#define MAXXREF 50
|
||||||
#define BUFSIZE 80
|
#define BUFSIZE 80
|
||||||
#define BASETAGID 200
|
#define BASETAGID 200
|
||||||
|
|
||||||
@ -435,7 +435,7 @@ static void disp_cat() {
|
|||||||
*p = NUL;
|
*p = NUL;
|
||||||
itemopen ^= 1;
|
itemopen ^= 1;
|
||||||
wprints(wrow, wcol, gwin.active->attr, q);
|
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) {
|
if((catarray[arraycnt]=(char*)throw_malloc(strlen(q)+1))!=NULL) {
|
||||||
strcpy(catarray[arraycnt],q);
|
strcpy(catarray[arraycnt],q);
|
||||||
if(not menuopen) {
|
if(not menuopen) {
|
||||||
|
Reference in New Issue
Block a user