mirror of
https://github.com/alliedmodders/amxmodx.git
synced 2024-12-25 06:15:37 +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