Skip to content
Snippets Groups Projects
Commit 346549c2 authored by rswindell's avatar rswindell
Browse files

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

parent 3066ff16
No related branches found
No related tags found
No related merge requests found
......@@ -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;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment