FIXME removal: Replaced a strncpy() with a memcpy().
This commit is contained in:
parent
711d9ec926
commit
d1d0ea025f
|
@ -313,9 +313,8 @@ static PHYSFS_sint64 LZMA_read(fvoid *opaque, void *outBuffer,
|
||||||
} /* if */
|
} /* if */
|
||||||
|
|
||||||
/* Copy wanted bytes over from cache to outBuffer */
|
/* Copy wanted bytes over from cache to outBuffer */
|
||||||
/* !!! FIXME: strncpy for non-string data? */
|
memcpy(outBuffer,
|
||||||
strncpy(outBuffer,
|
(entry->archive->folder[entry->folderIndex].cache +
|
||||||
(void*) (entry->archive->folder[entry->folderIndex].cache +
|
|
||||||
entry->offset + entry->position),
|
entry->offset + entry->position),
|
||||||
(size_t) wantedSize);
|
(size_t) wantedSize);
|
||||||
entry->position += wantedSize;
|
entry->position += wantedSize;
|
||||||
|
|
Loading…
Reference in New Issue