From d1d0ea025ff65172ea1cb9e9091c4ef5422857aa Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Sun, 27 May 2007 14:34:28 +0000 Subject: [PATCH] FIXME removal: Replaced a strncpy() with a memcpy(). --- archivers/lzma.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/archivers/lzma.c b/archivers/lzma.c index 1f52620..1182cd6 100644 --- a/archivers/lzma.c +++ b/archivers/lzma.c @@ -313,9 +313,8 @@ static PHYSFS_sint64 LZMA_read(fvoid *opaque, void *outBuffer, } /* if */ /* Copy wanted bytes over from cache to outBuffer */ -/* !!! FIXME: strncpy for non-string data? */ - strncpy(outBuffer, - (void*) (entry->archive->folder[entry->folderIndex].cache + + memcpy(outBuffer, + (entry->archive->folder[entry->folderIndex].cache + entry->offset + entry->position), (size_t) wantedSize); entry->position += wantedSize;