]> git.mxchange.org Git - flightgear.git/commitdiff
Ooops, I added another item to what I write to the buffer, but
authorcurt <curt>
Fri, 1 Aug 2003 17:06:11 +0000 (17:06 +0000)
committercurt <curt>
Fri, 1 Aug 2003 17:06:11 +0000 (17:06 +0000)
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

index 312fe1d3de4364b2bd16cef53a66c64724a3beda..12a738bf639e2743bd518e29339fba1854eb5d89 100644 (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";