diff options
| author | Eivind Eklund <eivind@FreeBSD.org> | 1997-12-12 18:38:22 +0000 |
|---|---|---|
| committer | Eivind Eklund <eivind@FreeBSD.org> | 1997-12-12 18:38:22 +0000 |
| commit | 5b421cac1a84ddc38e9e190fabfc5a5dff53deaf (patch) | |
| tree | 3bad16b78e23fac1e1fe81da3c8198096e66d8af /bin | |
| parent | 825856aa2c46abc220d1f70b25c85256ae0335e6 (diff) | |
Notes
Diffstat (limited to 'bin')
| -rw-r--r-- | bin/pax/ar_subs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/pax/ar_subs.c b/bin/pax/ar_subs.c index a3be1c988b10..5b12c52480e5 100644 --- a/bin/pax/ar_subs.c +++ b/bin/pax/ar_subs.c @@ -34,7 +34,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: ar_subs.c,v 1.8 1997/08/29 16:12:19 sos Exp $ + * $Id: ar_subs.c,v 1.9 1997/12/10 22:18:25 eivind Exp $ */ #ifndef lint @@ -742,7 +742,7 @@ copy() * set up the destination dir path and make sure it is a directory. We * make sure we have a trailing / on the destination */ - dlen = l_strncpy(dirbuf, dirptr, PAXPATHLEN); + dlen = l_strncpy(dirbuf, dirptr, sizeof(dirbuf) - 1); dest_pt = dirbuf + dlen; if (*(dest_pt-1) != '/') { *dest_pt++ = '/'; |
