pioneerspacesim/pioneer — pull request #2438 by fluffyfreak (2013-09-25 18:39:09+00:00)
Title: Fixing some MSVC caused stack corruption.

# Description:
Two bugs here, one a simply typo and other caused by MSVC still only supporting C89 for it's sscanf implementation. This is also my fault for *using* sscanf, the hilarity does not escape my notice.

# Fixes:
CameraController overflowing the bounds of the array copying values from one matrix to another. Fixed and added a util function to do it in future.

NavLights, due to MSVC being pants and only supporting C89 not C99 the %hhu or %hhd formatters aren't recognised and so cause stack corruption when reading the group variable. Fixed this by making it a Uint32 and using %u.