From 562ce6f5e2385ad9f3a50e03b6aaf403e80c4bfe Mon Sep 17 00:00:00 2001 From: curt Date: Fri, 1 Aug 2003 17:06:11 +0000 Subject: [PATCH] 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.) --- src/FDM/ExternalPipe/ExternalPipe.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/FDM/ExternalPipe/ExternalPipe.cxx b/src/FDM/ExternalPipe/ExternalPipe.cxx index 312fe1d3d..12a738bf6 100644 --- a/src/FDM/ExternalPipe/ExternalPipe.cxx +++ b/src/FDM/ExternalPipe/ExternalPipe.cxx @@ -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";