[Bf-committers] Blender 2.43 RC1

Giuseppe Ghibò ghibo at mandriva.com
Mon Jan 8 20:30:27 CET 2007


Alexander Ewering ha scritto:

> 
> On Mon, 8 Jan 2007, [ISO-8859-1] Giuseppe Ghib� wrote:
> 
>> the crash happens immediately at the beginning after opening the main 
>> window, simply launching blender.
> 
> The current code definitely doesn't crash:
> 
>     sprintf(subvstr, "%4d", BLENDER_SUBVERSION);
>     memcpy(fg.subvstr, subvstr, 4);
> 
> It does everything right:
> 
> - puts the version number into a temporary string which is big enough to
>   hold the string terminator,
> - memcopies the four relevant bytes to fg.subvstr, and exactly four.
> 
> So, there is no problem... what's the whole discussion about? ;)

I didn't noticed the today commit and that ton was referring to that one.
Apart this you achieve a non-NULL terminated string. i.e.

	fg.subvstr[0] = ' '
	fg.subvstr[1] = ' '
         fg.subvstr[2] = ' '
         fg.subvstr[3] = '3'

is this the intended behaviour of this fg.subvstr?

Bye
Giuseppe.


More information about the Bf-committers mailing list