bridgecommand / bc

Bridge Command ship simulator
https://www.bridgecommand.co.uk
Other
56 stars 24 forks source link

Fix autopilot buffer size. #57

Closed MaxouPicsou closed 11 months ago

MaxouPicsou commented 11 months ago

Autopilot was limited to a buffer size of 8 because of the next line:

ssize_t nread = ::read(rcvSocket.native_handle(), buf, sizeof(buf));

sizeof(buf) = 8 because it returns the size of type char * which is a pointer.