[Bf-committers] Patch- 3d view Object sel menu

Alexander Ewering bf-committers@blender.org
Mon, 19 Jul 2004 02:33:01 +0200 (CEST)


On Mon, 19 Jul 2004, Campbell Barton wrote:

> Hi Daniel, do you think its worth changing over to BLI_dynStr ?
> I thaught that allocating 512 wasnt realy too bad (half a k)
>
> Im still not sure why menuIndexChar would be a problem, as I sead in my email 
> before.
> And if for some resion it needs to be bigger then why not just make it 3/4 
> chars in length?

You seem to lack some basic understanding about how strings work in C ;)

A 2-char string occupies 3 chars in memory.

http://www.sepsis.za.net/programming_c07.html

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