modelon-community / fmi-library

C library for importing FMUs
Other
115 stars 34 forks source link

Fix heap corruption for Binary array variables on MinGW #52

Closed filip-stenstrom closed 1 year ago

filip-stenstrom commented 1 year ago

There was a warning:

<...>/src/XML/src/FMI3/fmi3_xml_variable.c:1025:26: warning: unknown conversion type character 'h' in format [-Wformat=]

         if (!sscanf(pos, "%2hhx", &bytearr[i])) {

and some more secondary errors.