From: curt Date: Fri, 1 Aug 2003 17:06:11 +0000 (+0000) Subject: Ooops, I added another item to what I write to the buffer, but X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=562ce6f5e2385ad9f3a50e03b6aaf403e80c4bfe;p=flightgear.git 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.) --- 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";