Forum
Search
Members
Help
Hello There, Guest!
Login
Username:
Password:
Lost Password?
Remember me
SA-MP Forums Archive
SA-MP Scripting and Plugins
Scripting Help
Help Archive
Threaded Mode
sscanf warning: String buffer overflow.
armyoftwo
Gangsta
Posts: 636
Threads: 112
Joined: Nov 2009
Reputation:
0
#1
05.12.2010, 11:46
Код:
sscanf(line, "p<|>{iffiiiiiii}i{ii}s[24]is[40]", Rankk, CharacterName, MemberID, LastSeen );
What's wrong?
Find
Reply
JaTochNietDan
High-roller
Posts: 2,502
Threads: 26
Joined: Apr 2007
Reputation:
0
#2
05.12.2010, 11:49
It means that the string length specified in sscanf is longer than the array variable you are saving it to.
Find
Reply
armyoftwo
Gangsta
Posts: 636
Threads: 112
Joined: Nov 2009
Reputation:
0
#3
05.12.2010, 11:58
Thanks, fixed
Find
Reply
JaTochNietDan
High-roller
Posts: 2,502
Threads: 26
Joined: Apr 2007
Reputation:
0
#4
05.12.2010, 12:09
Quote:
Originally Posted by
******
Actually it means that the string you tried to store in the buffer is longer than the specified string.
Ah I see, apologies for the lack of correct explanation, I don't use the new sscanf, I still use the good old include version
Find
Reply
«
Next Oldest
|
Next Newest
»
View a Printable Version
Forum Jump:
Private Messages
User Control Panel
Who's Online
Search
Forum Home
SA-MP
-- News and Updates
-- General
-- Client Support
-- Bug Reports
-- Screenshots and Videos
SA-MP Server
-- Server Support
-- Server Advertisements
SA-MP Scripting and Plugins
-- Scripting Help
---- Tutorials
---- Discussion
---- Help Archive
-- Gamemode Scripts
-- Filterscripts
---- Includes
---- Tools and Files
---- Maps
-- Plugin Development
SA-MP DL Edition
-- SA-MP 0.3.DL
---- Model Releases
Other
-- Everything and Nothing
Non-English
-- Languages
---- Nederlands/Dutch
------ Scripting Showroom en Discussie
------ Off topic
---- Español/Spanish
------ Lanzamientos/Releases
---- Français/French
------ Showroom
---- Русский/Russian
------ Релизы/Releases
---- Português/Portuguese
------ Lançamentos/Releases
---- Română/Romanian
------ Salonul Scripturilor
---- Archive
Users browsing this thread: 4 Guest(s)
SA-MP Forums Archive
SA-MP Scripting and Plugins
Scripting Help
Help Archive