diff options
author | millert <> | 1999-06-17 16:28:58 +0000 |
---|---|---|
committer | millert <> | 1999-06-17 16:28:58 +0000 |
commit | 119cda95bf950cdcba7a16178e7f48fdf84f58d0 (patch) | |
tree | 037ab4c3eafb97e4121e9fc27cbb82dbcc5a3b6d /src/lib/libc/string/strmode.c | |
parent | 05fa287fa4090ddc8e0efcfeec475b38bf9445e0 (diff) | |
download | openbsd-119cda95bf950cdcba7a16178e7f48fdf84f58d0.tar.gz openbsd-119cda95bf950cdcba7a16178e7f48fdf84f58d0.tar.bz2 openbsd-119cda95bf950cdcba7a16178e7f48fdf84f58d0.zip |
When finding the end of dst, never traverse more than siz bytes. This
keeps us from misbehaving if the user gives us a src string that is not
NUL-terminated. This is one of those "should not happen" cases but it
is good to play it safe. Pointed out by Casper Dik <casper@holland.sun.com>
Diffstat (limited to 'src/lib/libc/string/strmode.c')
0 files changed, 0 insertions, 0 deletions