mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 02:15:43 -04:00
buffer overflow fix when compiling with vc8
This commit is contained in:
parent
cff3753ef5
commit
5d6bbfa383
@ -462,7 +462,7 @@ read_line(string line) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!_in_for && !failed_if()) {
|
if (!_in_for && !failed_if() && line.length() > p+1) {
|
||||||
if(line[p+1]==COMMAND_PREFIX) {
|
if(line[p+1]==COMMAND_PREFIX) {
|
||||||
// double prefix at start of line indicates echo single prefix, like '\\' in C
|
// double prefix at start of line indicates echo single prefix, like '\\' in C
|
||||||
line.erase(0,1);
|
line.erase(0,1);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user