DescentDevelopers / Descent3

Descent 3 by Outrage Entertainment
GNU General Public License v3.0
2.88k stars 251 forks source link

Fix uninitialized string buffer access in pilot cpp #627

Closed sebholt closed 1 month ago

sebholt commented 1 month ago

Pull Request Type

Description

This fixes access to uninitialized string buffers in pilot.cpp in two cases that are very similar. From earlier commits an uninitialized string buffer remained but was used nonetheless in logging functions where a std::string, that was introduced meanwhile, should have been used instead.

This fixes both cases and removes the now unused string buffer.

Related Issues

Screenshots (if applicable)

Checklist

Additional Comments