Closed spaikmos closed 3 years ago
Thanks a lot. Strange that this has not yet become an issue, although I have been using VS also for the Windows builds.
Weird... I'm using VS2019, dunno if there's an option or flag that needs to be set to enable this construct in C.
This answer in stack overflow explains the issue in more detail.
Maybe there was a change between VS 2017 and VS 2019. Maybe this was also introduced by some patches after version 2.0.0 was released.
Visual Studio generates an error when using a variable to set the length of an array. GCC allows this, but it is not part of the C standard. Hence, use a constant expression to set both the initial recveAPDULen and recvAPDU array length.