[Asterisk-Dev] Re: Is anyone thinking anymore?

Tony Mountifield tony at softins.clara.co.uk
Mon Jul 26 01:34:23 MST 2004


In article <001d01c472d5$0ca16200$0500010a at mycomputer>,
Rob Gagnon <rob at networkip.net> wrote:
> What happens when someone changes the 3-byte constant to a 42 -byte
> constant?

Then they change the array size to suit.

strncpy() on external or calculated input of potentially unknown
length is indispensable. But I still question its use for constant
strings.

Sometimes you can have so many belts and braces it gets harder to walk!

Cheers
Tony
-- 
Tony Mountifield
Work: tony at softins.co.uk - http://www.softins.co.uk
Play: tony at mountifield.org - http://tony.mountifield.org



More information about the asterisk-dev mailing list