diff options
author | tjr <tjr@FreeBSD.org> | 2002-10-23 04:35:25 +0000 |
---|---|---|
committer | tjr <tjr@FreeBSD.org> | 2002-10-23 04:35:25 +0000 |
commit | 648d24ba625178e1ef5789d4fa7c27f9e5eb2e15 (patch) | |
tree | 52a64e91233ac54aed220980167ba757678618c5 /lib/libc/string/strncpy.c | |
parent | 2450bdb69b00fa80c6300b0490ce491af643f642 (diff) | |
download | FreeBSD-src-648d24ba625178e1ef5789d4fa7c27f9e5eb2e15.zip FreeBSD-src-648d24ba625178e1ef5789d4fa7c27f9e5eb2e15.tar.gz |
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
Diffstat (limited to 'lib/libc/string/strncpy.c')
0 files changed, 0 insertions, 0 deletions