1
0
Fork 0

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:
curt 2003-08-01 17:06:11 +00:00
parent 55f97b218e
commit 562ce6f5e2

View file

@ -44,7 +44,7 @@
FGExternalPipe::FGExternalPipe( double dt, string name ) {
valid = true;
buf = new char[sizeof(ctrls) + 1];
buf = new char[sizeof(char) + sizeof(int) + sizeof(ctrls)];
#ifdef HAVE_MKFIFO
fifo_name_1 = name + "1";