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

  • From: "Axel Dörfler" <axeld@xxxxxxxxxxxxxxxx>
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Wed, 29 Dec 2010 12:11:53 +0100 (MET)

> Log:
> CID 6931 and 8076: use strncpy for the extremely unlikely case that
> B_TRANSLATE("???") returns something larger than the size of name.

Please ban strncpy() from your brain and use strlcpy() instead - the former 
cannot safely be used this way.

Bye,
   Axel.


Other related posts: