lzma: strncpy for non-string data?
Ryan C. Gordon
icculus at icculus.org
Sun May 27 02:17:30 EDT 2007
This is in lzma.c, around line 316...
/* !!! FIXME: strncpy for non-string data? */
(void*) (entry->archive->folder[entry->folderIndex].cache +
entry->offset + entry->position),
...is there any reason this can't be a memcpy()? If I'm reading this
correctly, this will copy the wrong amount of data if it reads a binary
file with an embedded zero.
More information about the physfs