]> git.mxchange.org Git - flightgear.git/commit
Fix various mp bugs.
authorTim Moore <timoore@redhat.com>
Thu, 5 Feb 2009 22:18:26 +0000 (23:18 +0100)
committerTim Moore <timoore@redhat.com>
Fri, 6 Feb 2009 07:50:14 +0000 (08:50 +0100)
commite83caa63210e7f46ce20ec275fe909ef77d02bdf
tree9d766c5bd2c6af57aa974299b01e9aa87543dbf1
parentbfc059aa03e8e04e3169f437a94d0123b7c8c705
Fix various mp bugs.

In multiplaymgr.cxx:
The length of a string property that is too big was written out in the message
even though the string was truncated. Also, it was possible to overrun the
message buffer.

In incoming  messages, null-terminate the callsign to prevent any funny
business. Don't believe invalid string lengths. Turn the warning about unknown
properties from a warning into info; there are too many buggy clients out there,
not to mention people who add their own MP properties (hi vivian :)
src/MultiPlayer/multiplaymgr.cxx