mirror of
https://github.com/alliedmodders/amxmodx.git
synced 2024-12-24 13:55:36 +03:00
fixed crash bug
This commit is contained in:
parent
d9b768e2cf
commit
727c798892
@ -787,7 +787,7 @@ char * CLangMngr::FormatAmxString(AMX *amx, cell *params, int parm, int &len)
|
||||
char *ptr = format+1;
|
||||
if (*src != '%')
|
||||
{
|
||||
while (!isalpha(*ptr++ = *src++))
|
||||
while (*src != 0 && !isalpha(*ptr++ = *src++))
|
||||
/*nothing*/;
|
||||
--src;
|
||||
*ptr = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user