[Bf-committers] [Bf-blender-cvs] SVN commit: /data/svn/bf-blender [12449] trunk/blender/source/blender/src/ editipo.c: Bugfix - Ipo-Editor Scaling:

Alexander Ewering blender at instinctive.de
Thu Nov 1 17:43:39 CET 2007


On Thu, 1 Nov 2007, Joshua Leung wrote:

> +	/* dynamically allocate an array of chars to mark whether an TransData's
> +	 * pointers have been fixed already, so that we don't override ones that are
> +	 * already done
> + 	 */
> +	adjusted= MEM_callocN(sizeof(char), "beztmap_adjusted_map");

<random_code_police_rant>

1) This cannot work, as it only allocates space for at most 4 or 8 chars. ;)
2) sizeof char is always 1

Alexander Ewering


[ i n s t i n c t i v e . ]      instinctive mediaworks

Zur Waldeshoehe 6                    Tel.: 02393-220558
59846 Sundern                         Fax: 02393-220559
Germany                xx-mail: xx-mail.com/instinctive


More information about the Bf-committers mailing list