Ye, it's 1.8.2, the latest.
Quote:
Originally Posted by HamletEagle
This looks like a potential buffer overflow. Use charsmax to ensure the proper size is passed and to avoid hardcoding.
|
Charsmax inside the
get_pcvar_string()?
PHP Code:
public setServerLights()
{
new lights[];
get_pcvar_string(g_lights, lights, charsmax(2));
set_lights(lights);
}
Can I write it like this?