From: wessels <> Date: Mon, 29 May 2000 06:36:39 +0000 (+0000) Subject: DW: X-Git-Tag: SQUID_3_0_PRE1~1962 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b9e8998ea7bfe0464b1988630137aad5a41a48aa;p=thirdparty%2Fsquid.git DW: - Use xstrncpy instead of strcpy. --- diff --git a/src/fs/diskd/store_io_diskd.cc b/src/fs/diskd/store_io_diskd.cc index bd95359216..b15b8ba39c 100644 --- a/src/fs/diskd/store_io_diskd.cc +++ b/src/fs/diskd/store_io_diskd.cc @@ -1,6 +1,6 @@ /* - * $Id: store_io_diskd.cc,v 1.8 2000/05/29 00:34:39 wessels Exp $ + * $Id: store_io_diskd.cc,v 1.9 2000/05/29 00:36:39 wessels Exp $ * * DEBUG: section 81 Squid-side DISKD I/O functions. * AUTHOR: Duane Wessels @@ -86,8 +86,7 @@ storeDiskdOpen(SwapDir * SD, StoreEntry * e, STFNCB * file_callback, diskdstate->id = diskd_stats.sio_id++; buf = storeDiskdShmGet(SD, &shm_offset); - /* XXX WRONG!!! :) */ - strcpy(buf, storeDiskdDirFullPath(SD, f, NULL)); + xstrncpy(buf, storeDiskdDirFullPath(SD, f, NULL), SHMBUF_BLKSZ); x = storeDiskdSend(_MQD_OPEN, SD, diskdstate->id,