mirror of
https://github.com/ptitSeb/Serious-Engine
synced 2024-11-22 10:20:26 +01:00
Merge pull request #62 from comicfans/fix_sscanf_stack_buffer_overflow
fix sscanf stack buffer overflow. string should have '\0'
This commit is contained in:
commit
f7a61adbc5
|
@ -180,7 +180,7 @@ void CControls::Load_t( CTFileName fnFile)
|
|||
char achrLine[ 1024];
|
||||
char achrName[ 1024];
|
||||
char achrID[ 1024];
|
||||
char achrActionName[ 1024];
|
||||
char achrActionName[ 1025];
|
||||
|
||||
// open script file for reading
|
||||
CTFileStream strmFile;
|
||||
|
@ -216,13 +216,13 @@ void CControls::Load_t( CTFileName fnFile)
|
|||
|
||||
// if this is axis action
|
||||
} else if( CTString( achrID) == "Axis") {
|
||||
char achrAxis[ 1024];
|
||||
char achrAxis[ 1025];
|
||||
achrAxis[ 0] = 0;
|
||||
char achrIfInverted[ 1024];
|
||||
char achrIfInverted[ 1025];
|
||||
achrIfInverted[ 0] = 0;
|
||||
char achrIfRelative[ 1024];
|
||||
char achrIfRelative[ 1025];
|
||||
achrIfRelative[ 0] = 0;
|
||||
//char achrIfSmooth[ 1024];
|
||||
//char achrIfSmooth[ 1025];
|
||||
//achrIfSmooth[ 0] = 0;
|
||||
achrActionName[ 0] = 0;
|
||||
FLOAT fSensitivity = 50;
|
||||
|
|
Loading…
Reference in New Issue
Block a user