Commit 346549c2 authored by rswindell's avatar rswindell

Fix observed crash in guruexp(): str[c]=0 does bad stuff when is c < 0.

parent 3066ff16
......@@ -1823,8 +1823,9 @@ void sbbs_t::guruchat(char* line, char* gurubuf, int gurunum, char* last_answer)
/****************************************************************************/
bool sbbs_t::guruexp(char **ptrptr, char *line)
{
char c,*cp,str[256];
char *cp,str[256];
int nest;
unsigned c;
bool result=false,_and=false,_or=false;
uchar *ar;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment