Re: [Flightgear-devel] controls-bind()

2003-04-02 Thread Gerhard Wesp
strstream would do the trick, but not all compilers support it yet. Note that strstream is *deprecated* in C++, one should use stringstreams (sstream) instead. No danger of overflowing any buffers there. Cf. Josuttis, The C++ Standard Library, Section 13.11.2. AFAIK, every major platform now

Re: [Flightgear-devel] controls-bind()

2003-04-02 Thread Erik Hofman
Gerhard Wesp wrote: strstream would do the trick, but not all compilers support it yet. Note that strstream is *deprecated* in C++, one should use stringstreams (sstream) instead. No danger of overflowing any buffers there. Cf. Josuttis, The C++ Standard Library, Section 13.11.2. AFAIK, every

Re: [Flightgear-devel] controls-bind()

2003-04-02 Thread Bernie Bright
On Wed, 02 Apr 2003 10:58:21 +0200 Erik Hofman [EMAIL PROTECTED] wrote: Gerhard Wesp wrote: strstream would do the trick, but not all compilers support it yet. Note that strstream is *deprecated* in C++, one should use stringstreams (sstream) instead. No danger of overflowing any

Re: [Flightgear-devel] controls-bind()

2003-04-02 Thread Frederic BOUVIER
Bernie Bright wrote : STLport has sstream but I doubt if it could be extracted as a stand alone file. Have you (Erik) tried STLport on your system? If it works then we probably wouldn't need the simgear compatibility stuff anymore. Note that MSVC6 does not have sstream while I think VC7

Re: [Flightgear-devel] controls-bind()

2003-04-02 Thread Erik Hofman
Bernie Bright wrote: STLport has sstream but I doubt if it could be extracted as a stand alone file. Have you (Erik) tried STLport on your system? If it works then we probably wouldn't need the simgear compatibility stuff anymore. If it did work, I wouldn't have tried generating simething like

Re: [Flightgear-devel] controls-bind()

2003-04-02 Thread Gerhard Wesp
Note that MSVC6 does not have sstream while I think VC7 does. Correct. I guess MSVC6 is the only platform which doesn't have sstream? Is there any specific reason why FG has to support a compiler more than 5 years old? Regards, -Gerhard -- | voice: +43 (0)676 6253725 *** web:

[Flightgear-devel] controls-bind()

2003-04-01 Thread Curtis L. Olson
I tracked down my crash to controls-bind() There you will find a plethora of places where the code is sprintf'ing to a char[32] array, but the contents is often longer than 32 bytes. Might not have been crashing everyone else (building with -g?) but it was crashing with -O2. Fixed in cvs ...

Re: [Flightgear-devel] controls-bind()

2003-04-01 Thread Erik Hofman
Curtis L. Olson wrote: I tracked down my crash to controls-bind() There you will find a plethora of places where the code is sprintf'ing to a char[32] array, but the contents is often longer than 32 bytes. Might not have been crashing everyone else (building with -g?) but it was crashing with

Re: [Flightgear-devel] controls-bind()

2003-04-01 Thread David Megginson
Erik Hofman writes: Is there still no replacement function to do this kind of operation in a C++ string? strstream would do the trick, but not all compilers support it yet. All the best, David -- David Megginson, [EMAIL PROTECTED], http://www.megginson.com/