Found this code while debugging kamera: for (i = 0; i < sizeof(models) / sizeof(models[i]); i++) { [...] } Since AFAIK the compiler is free to add arbitrary padding in structures and arrays, the behavior of this code is pretty much undefined.
Not so, from my interpretation of C99. See example 2 (paragraph 6) of 6.5.3.4 "The sizeof operator".