Raised This Month: $ Target: $400
 0% 

Solved set_lights in cvar


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
chickez
Junior Member
Join Date: Jun 2020
Location: Slovakia
Old 06-30-2020 , 06:20   Re: set_lights in cvar
Reply With Quote #8

Ye, it's 1.8.2, the latest.

Quote:
Originally Posted by HamletEagle View Post
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_lightslightscharsmax(2));
    
set_lights(lights);

Can I write it like this?
chickez is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 17:09.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode