[haiku-commits] Re: r40011 - haiku/trunk/src/apps/stylededit

  • From: Ryan Leavengood <leavengood@xxxxxxxxx>
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Wed, 29 Dec 2010 11:07:56 -0500

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

Other related posts: