fix out of bounds (off by 1) access of vcontrol_parse_state::line
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3738 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
@@ -1265,7 +1265,7 @@ VControl_ParseGesture (VCONTROL_GESTURE *g, const char *spec)
|
||||
parse_state ps;
|
||||
|
||||
strncpy (ps.line, spec, LINE_SIZE);
|
||||
ps.line[LINE_SIZE] = '\0';
|
||||
ps.line[LINE_SIZE - 1] = '\0';
|
||||
ps.index = ps.error = 0;
|
||||
ps.linenum = -1;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user