FIXME removal: Replaced a strncpy() with a memcpy().
authorRyan C. Gordon <icculus@icculus.org>
Sun, 27 May 2007 14:34:28 +0000
changeset 898 4697b2f3c3a3
parent 897 4adcb2c5567b
child 899 ae19fe631c99
FIXME removal: Replaced a strncpy() with a memcpy().
archivers/lzma.c
--- a/archivers/lzma.c	Fri May 11 20:12:10 2007 +0000
+++ b/archivers/lzma.c	Sun May 27 14:34:28 2007 +0000
@@ -313,9 +313,8 @@
     } /* 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;