I wrote:
> > The property system does not support arbitrary byte arrays in the
> > string value.  The SGPropertyNode::setStringValue() interface
> > supports only C strings (a char* with no length), which are always
> > nul terminated.
> Well, char* doesn't require it to be NULL terminated and
> strlen()(and strcpy) is only used in one function.

It does if you don't specify a length: fixing this requires changing
every spot in the code where a "string" was read from or written to a
property to make the code handle the length properly.  It's not hard,
but it's a huge amount of work (and probably not worth it, as you can
store arbitrary byte buffers as Nasal objects anyway).


Flightgear-devel mailing list

Reply via email to