Julian Foad writes:

 > Well, you've improved it.  You've made it print to a local buffer
 > in the object, so that memory is at least persistent after the call
 > returns.  However, that buffer is already used for make_string() so
 > code like this:
 > 
 >   sprintf(dest, "%s = %s", getPath(), getStringValue());
 > 
 > will go wrong because getPath() and make_string() (called by
 > getStringValue()) both overwrite the same area.

I've just checked in some new changes that should fix this problem and
make the method more efficient.  Each node keeps a persisent copy of
its path after the first getPath() invocation and returns that buffer.


Thanks,


David

-- 
David Megginson, [EMAIL PROTECTED], http://www.megginson.com/

_______________________________________________
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel

Reply via email to