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:
avolkov
2012-01-08 04:01:44 +00:00
parent d62c5bfda3
commit 779b955501
+1 -1
View File
@@ -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;