[haiku-bugs] Re: [Haiku] #8481: strncpy doesn't pad the destination string with NULs

  • From: "hamish" <trac@xxxxxxxxxxxx>
  • Date: Wed, 18 Apr 2012 19:15:50 -0000

#8481: strncpy doesn't pad the destination string with NULs
---------------------------------+----------------------------
   Reporter:  hamish             |      Owner:  axeld
       Type:  bug                |     Status:  new
   Priority:  normal             |  Milestone:  R1
  Component:  System/libroot.so  |    Version:  R1/Development
 Resolution:                     |   Keywords:  strncpy
 Blocked By:                     |   Blocking:
Has a Patch:  1                  |   Platform:  All
---------------------------------+----------------------------

Comment (by hamish):

 On x86, gcc2+4 O0/O2/O3, zeroing everything beforehand is faster than
 zeroing the remainder afterwards in most cases

-- 
Ticket URL: <http://dev.haiku-os.org/ticket/8481#comment:2>
Haiku <http://dev.haiku-os.org>
Haiku - the operating system.

Other related posts: