2
0
mirror of https://github.com/alliedmodders/amxmodx.git synced 2025-05-30 07:27:43 +03:00

fixed formatter bug on bad control code

This commit is contained in:
David Anderson 2006-02-11 22:48:29 +00:00
parent 82693ccae6
commit 2c8808aaff

@ -398,6 +398,8 @@ size_t do_amx_format_parameter(AMX *amx, cell *params, const char **fmtstr, int
}
//get the final character
ctrl_code = fmtsrc[len++];
if (!ctrl_code)
return 0;
//inc the source pointer
*fmtstr = &(fmtsrc[len]);
//finalize the string