[Bf-committers] fix to #2117

Alexander Ewering blender at instinctive.de
Mon Jan 24 20:00:07 CET 2005

On Mon, 24 Jan 2005, Joilnen Batista Leite wrote:

> Hi guys !
> I think that it can solve that overflow

No, it doesn't solve it, you still get a non-terminated string.

And looking at the old code... I wonder if the whole Python interface
is coded like that.

  BLI_strncpy( self->name, name, strlen( name ) + 1 );

What in god's name does strncpy(bleh,blah,strlen(blah)+1) do
differently to strcpy(bleh,blah) ?

| alexander ewering              instinctive mediaworks
| ae[@]instinctive[.]de   http://www[.]instinctive[.]de

More information about the Bf-committers mailing list