29 Oct
2002
29 Oct
'02
4:56 a.m.
- there's no point in using strncat if you don't pass it the real size of the buffer
Also be aware that strncpy/strncat are required to zero out the unfilled part of the buffer. This is a performance penalty you don't (normmaly) want. They also don't guarantee to null terminate the string. Some systems have strlcpy/strlcat which DTRT. David -- David Laight: david(a)l8s.co.uk