pierr3 / vSMR

EuroScope Plugin to simulate the NOVA 9000 A-SMGCS system on VATSIM
GNU General Public License v3.0
67 stars 27 forks source link

HttpHelper wrongly passes url as std::string #106

Open Epse opened 1 year ago

Epse commented 1 year ago

In HttpHelper, URLs are passed to libcurl as std::string, where they should be char pointers, thus breaking things like CPDLC, due to libcurl errors. The std::string.c_str() method is exactly what's needed here.

See: https://github.com/pierr3/vSMR/blob/e696e0932af07cfa16068ffbb843ad13c7882266/vSMR/HttpHelper.cpp#L32

If some more time can be given, I can prepare a patch to fix this.