On Wed, Dec 29, 2010 at 6:11 AM, Axel Dörfler <axeld@xxxxxxxxxxxxxxxx> wrote: > > Please ban strncpy() from your brain and use strlcpy() instead - the former > cannot safely be used this way. Thanks for the feedback guys, I'll switch this to strlcpy and make that my "standard" for safe string copying. Do we also make a habit of checking the return value to see if truncation was done? Probably not in this case I suppose. -- Regards, Ryan