Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 22 Oct 2002 21:35:25 -0700 (PDT)
From:      "Tim J. Robbins" <tjr@FreeBSD.org>
To:        cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/lib/libc/string wcsncpy.c
Message-ID:  <200210230435.g9N4ZPCv063794@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
tjr         2002/10/22 21:35:25 PDT

  Modified files:
    lib/libc/string      wcsncpy.c 
  Log:
  Replace this wcsncpy() implementation with one based on strncpy.c to fix
  two major bugs:
  - off-by-one overflow when the length of the source string exceeds or
    equals the destination buffer size.
  - old version was not padding the destination buffer with null wide chars
  
  Revision  Changes    Path
  1.8       +32 -26    src/lib/libc/string/wcsncpy.c

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200210230435.g9N4ZPCv063794>