Ooops, I added another item to what I write to the buffer, but
forgot to make it big enough to hold the new item. This was manifesting itself as a crash on reset (if the ExternalPipe FDM was being used.)
This commit is contained in:
parent
55f97b218e
commit
562ce6f5e2
1 changed files with 1 additions and 1 deletions
|
@ -44,7 +44,7 @@
|
||||||
FGExternalPipe::FGExternalPipe( double dt, string name ) {
|
FGExternalPipe::FGExternalPipe( double dt, string name ) {
|
||||||
valid = true;
|
valid = true;
|
||||||
|
|
||||||
buf = new char[sizeof(ctrls) + 1];
|
buf = new char[sizeof(char) + sizeof(int) + sizeof(ctrls)];
|
||||||
|
|
||||||
#ifdef HAVE_MKFIFO
|
#ifdef HAVE_MKFIFO
|
||||||
fifo_name_1 = name + "1";
|
fifo_name_1 = name + "1";
|
||||||
|
|
Loading…
Reference in a new issue