Skip to content

Commit

Permalink
FIXME removal: Replaced a strncpy() with a memcpy().
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed May 27, 2007
1 parent 711d9ec commit d1d0ea0
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions archivers/lzma.c
Expand Up @@ -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;
Expand Down

0 comments on commit d1d0ea0

Please sign in to comment.