On 25 Oct 2007, at 14:53, Andy Armstrong wrote: > On 25 Oct 2007, at 14:46, Adrian Howard wrote: >> size_t max_buffer_length = strlen(somestring); > > Wooo! Alarm bells! Trailing null! :) Good - coz you didn't get alarm bells when it was called sl :-) Adrian