diff --git a/src/sbbs3/ars.c b/src/sbbs3/ars.c index f664cb986dc52132acd7be0ff830b84da9c998cb..ba7e77a03c2062dfe796cc7ebfce96814ad100bc 100644 --- a/src/sbbs3/ars.c +++ b/src/sbbs3/ars.c @@ -37,6 +37,8 @@ #include "sbbs.h" +const uchar* nular=""; // AR_NULL + /* Converts ASCII ARS string into binary ARS buffer */ #ifdef __BORLANDC__ /* Eliminate warning when buildling Baja */ @@ -44,7 +46,6 @@ #endif uchar* arstr(ushort* count, char* str, scfg_t* cfg) { - static uchar nular[2]={0}; char *p; uchar ar[256],*ar_buf; uint i,j,n,artype=AR_LEVEL,not=0,equal=0; @@ -539,7 +540,7 @@ uchar* arstr(ushort* count, char* str, scfg_t* cfg) } } if(!j) - return(nular); /* Save memory */ + return((uchar*)nular); /* Save memory */ ar[j++]=AR_NULL; /** DEBUG stuff