]> git.mxchange.org Git - simgear.git/commitdiff
Fixed bug reported by Julian Foad:
authordavid <david>
Fri, 28 Jun 2002 16:56:14 +0000 (16:56 +0000)
committerdavid <david>
Fri, 28 Jun 2002 16:56:14 +0000 (16:56 +0000)
While investigating, I found that SGPropertyNode::getPath returns a
(char *) pointer to the character data of a string on its stack,
i.e. to undefined memory after it returns.  I remember someone was
changing strings to char* for efficiency.  Perhaps this bug was
introduced then.  I'll include a patch for it with my eventual patch
for the above, unless someone beats me to it.  I don't think it
affects any existing callers: they all want a string anyway.


No differences found