Bugfix since rev 2, BLO_setversionnumber() was using sizeof(array), which gives the sizeof the pointer, not the array.

On a 64bit system I assume this would set 8 chars of a 4 char array.

Turns out this isnt such a problem since BLO_setversionnumber isn't used anymore but way as well commit.
This commit is contained in:
Campbell Barton 2008-12-20 17:09:45 +00:00
parent c67d26602f
commit eb1d0e139f

@ -67,7 +67,7 @@ char *headerMagic = "BLENDFI";
*/
void BLO_setversionnumber(char array[4], int version)
{
memset(array, 0, sizeof(array));
memset(array, 0, sizeof(char)*4);
array[1] = version / 100;
array[2] = version % 100;