[Bf-committers] fix to #2117

Alexander Ewering blender at instinctive.de
Tue Jan 25 04:29:18 CET 2005

On Mon, 24 Jan 2005, Stephen Swaney wrote:

> On Mon, Jan 24, 2005 at 08:00:07PM +0100, Alexander Ewering wrote:
>> No, it doesn't solve it, you still get a non-terminated string.
> Ahhm. the PyOS_snprintf() call produces a nice null terminated string.

I corrected myself one mail later.

>>   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) ?
> the difference between strcpy() and strncpy() is that the latter only
> copies a maximum number of characters.

Wow. Don't tell me, I could die of brain overload ;-) What was the
operator to add two numbers again? ;)

It seems like I need to make my points more clearly with less
sarcasm and integrated puzzles ;)

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

More information about the Bf-committers mailing list