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

  • From: "hamish" <trac@xxxxxxxxxxxx>
  • Date: Wed, 18 Apr 2012 19:06:08 -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:  0                  |   Platform:  All
---------------------------------+----------------------------

Attachment added (by hamish):

0001-Pad-the-destination-string-with-zeroes-in-strncpy.patch (763 bytes) - no 
description

View the file at 
http://dev.haiku-os.org/attachment/ticket/8481/0001-Pad-the-destination-string-with-zeroes-in-strncpy.patch

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

Other related posts: